MailUriHelper Class
Provides helper functions for creating mail Uniform Resource Identifiers (URIs) or accessing data from mail URIs.
Assembly: Microsoft.ServiceModel.Channels.Mail (in Microsoft.ServiceModel.Channels.Mail.dll)
The mail URI includes a channel name and an e-mail address. The mail URI is based on the following format:
net.mail://<channel-name>#<e-mail-address-1>;...;<e-mail-address-n>
Note: |
|---|
This class is included with the .NET Compact Framework version 3.5, but it requires either the .NET Compact Framework 3.5 or the .NET Framework version 3.0 or later at run time. |
The following example shows how to use the MailUriHelper class to create Uri objects. The URIs are used as parameters in calls to the BuildChannelListener and CreateChannel methods.
bpc = New BindingParameterCollection() factory = binding.BuildChannelFactory(Of IOutputChannel)(bpc) listener = binding.BuildChannelListener(Of IInputChannel)(MailUriHelper.CreateUri(ChannelName, "")) factory.Open() output = factory.CreateChannel(New EndpointAddress(MailUriHelper.Create(ChannelName, DestinationEmailAddress)))
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: