Just recently I was looking for some default message properties and how to read and write them inside a custom pipeline component. While searching I stumbled over a great post listing all the default message properties and how to read them.

If you want to access the properties in your custom pipeline component, you have to get the IBaseMessageContext object from the IBaseContext and use the Read method to get a value or the Write method to substitute a value with your own.

For example:

public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)

{

IBaseMessageContext context = pInMsg.Context;

string value = context.Read(property, namespace).ToString();
context.Write(property, namespace, value);

}

To make your life a little easier, here’s the full list of properties:

Receive pipeline properties:

******Property****Namespace**
1ReceivedFileNamehttp://schemas.microsoft.com/BizTalk/2003/file-properties
2InboundTransportLocationhttp://schemas.microsoft.com/BizTalk/2003/system-properties
3InterchangeIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
4ReceivePortIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
5ReceivePortNamehttp://schemas.microsoft.com/BizTalk/2003/system-properties
6WasSolicitResponsehttp://schemas.microsoft.com/BizTalk/2003/system-properties
7AuthenticationRequiredOnReceivePorthttp://schemas.microsoft.com/BizTalk/2003/system-properties
8InboundTransportTypehttp://schemas.microsoft.com/BizTalk/2003/system-properties
9LRPMsgBodyTrackinghttp://schemas.microsoft.com/BizTalk/2003/system-properties
10MessageExchangePatternhttp://schemas.microsoft.com/BizTalk/2003/system-properties
11PortNamehttp://schemas.microsoft.com/BizTalk/2003/messagetracking-properties
12ReceivePipelineIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
13MessageTypehttp://schemas.microsoft.com/BizTalk/2003/system-properties
14SchemaStrongName[http://schemas.microsoft.com/BizTalk/2003/system-properties](http://schemas.microsoft.com/BizTalk/2003/system-properties)
Send pipeling properties:
******Property****Namespace**
1CopyModehttp://schemas.microsoft.com/BizTalk/2003/file-properties
2LTPMsgBodyTrackinghttp://schemas.microsoft.com/BizTalk/2003/system-properties
3ReceivedFileNamehttp://schemas.microsoft.com/BizTalk/2003/file-properties
4SPIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
5ActualRetryCounthttp://schemas.microsoft.com/BizTalk/2003/system-properties
6FileNamehttp://schemas.microsoft.com/BizTalk/2003/file-properties
7PartyNamehttp://schemas.microsoft.com/BizTalk/2003/messagetracking-properties
8ReceivePortNamehttp://schemas.microsoft.com/BizTalk/2003/system-properties
9WasSolicitResponsehttp://schemas.microsoft.com/BizTalk/2003/system-properties
10AllowCacheOnWritehttp://schemas.microsoft.com/BizTalk/2003/file-properties
11RetryIntervalhttp://schemas.microsoft.com/BizTalk/2003/system-properties
12OutboundTransportCLSIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
13SPNamehttp://schemas.microsoft.com/BizTalk/2003/system-properties
14InboundTransportLocationhttp://schemas.microsoft.com/BizTalk/2003/system-properties
15InterchangeIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
16ReceivePortIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
17SPTransportIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
18TransmitPipelineIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
19AuthenticationRequiredOnReceivePorthttp://schemas.microsoft.com/BizTalk/2003/system-properties
20InboundTransportTypehttp://schemas.microsoft.com/BizTalk/2003/system-properties
21LRPMsgBodyTrackinghttp://schemas.microsoft.com/BizTalk/2003/system-properties
22MessageExchangePatternhttp://schemas.microsoft.com/BizTalk/2003/system-properties
23OutboundTransportLocationhttp://schemas.microsoft.com/BizTalk/2003/system-properties
24PortNamehttp://schemas.microsoft.com/BizTalk/2003/messagetracking-properties
25ReceivePipelineIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
26SourcePartyIDhttp://schemas.microsoft.com/BizTalk/2003/system-properties
27MessageTypehttp://schemas.microsoft.com/BizTalk/2003/system-properties
28OutboundTransportTypehttp://schemas.microsoft.com/BizTalk/2003/system-properties
29PartNameshttp://schemas.microsoft.com/BizTalk/2003/messageagent-properties
30RetryCounthttp://schemas.microsoft.com/BizTalk/2003/system-properties
31SchemaStrongNamehttp://schemas.microsoft.com/BizTalk/2003/system-properties