Share via


MailBindingBase.CreateBindingElements Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns an ordered collection of binding elements that are contained in the current binding.

Namespace:  Microsoft.ServiceModel.Channels.Mail
Assembly:  Microsoft.ServiceModel.Channels.Mail (in Microsoft.ServiceModel.Channels.Mail.dll)

Syntax

'Declaration
Public Overrides Function CreateBindingElements As BindingElementCollection
'Usage
Dim instance As MailBindingBase
Dim returnValue As BindingElementCollection

returnValue = instance.CreateBindingElements()
public override BindingElementCollection CreateBindingElements()
public:
virtual BindingElementCollection^ CreateBindingElements() override
abstract CreateBindingElements : unit -> BindingElementCollection 
override CreateBindingElements : unit -> BindingElementCollection 

Return Value

Type: System.ServiceModel.Channels.BindingElementCollection
An object that contains the ordered stack of binding elements contained in the current instance of MailBindingBase.

Remarks

The order of the binding elements reflects the order in which the protocol and transport channels are constructed and stacked. The security element is at index 0, the encoding element is at index 1, and the transport element is at index 2. If no security element is present, the encoding element is at index 0, and the transport element is at index 1.

This collection of binding elements is a new collection and can be modified and then used to create a CustomBinding object.

.NET Framework Security

Platforms

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.

Version Information

.NET Compact Framework

Supported in: 3.5

See Also

Reference

MailBindingBase Class

MailBindingBase Members

Microsoft.ServiceModel.Channels.Mail Namespace