Get the POP3 context properties in a .net component.

Ever wondered how to access the pop3 context properties like from, to, cc etc (in a .net assembly) called from BizTalk? Its quite simple really. All you need to do is add a reference to Microsoft.BizTalk.GlobalPropertySchemas assembly (found in the BizTalk Server 2009 folder under program files).

The Microsoft.BizTalk.GlobalPropertySchemas namespace contains property schemas that various BizTalk Server components use. This namespace contains system properties that the BizTalk engine uses along with transport specific properties that each transport uses for handling the configuration and properties for configuring pipeline components.

Once you have added the reference, you can get access to the POP3 context properties as under:

Using Microsoft.BizTalk.GlobalPropertySchemas;

Class MyComponent
public void SomeMethod(XLANGMessage msg)
var value=msg.GetPropertyValue(typeof(POP3.From));


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: