AddressHeaderCollection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AddressHeaderCollection class.
Overloads
AddressHeaderCollection() |
Initializes a new instance of the AddressHeaderCollection class. |
AddressHeaderCollection(IEnumerable<AddressHeader>) |
Initializes a new instance of the AddressHeaderCollection class from an enumerable set of address headers. |
AddressHeaderCollection()
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
Initializes a new instance of the AddressHeaderCollection class.
public:
AddressHeaderCollection();
public AddressHeaderCollection ();
Public Sub New ()
Examples
The following code snippet illustrates how to create an instance of AddressHeaderCollection class with the parameterless constructor.
Applies to
AddressHeaderCollection(IEnumerable<AddressHeader>)
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
- Source:
- AddressHeaderCollection.cs
Initializes a new instance of the AddressHeaderCollection class from an enumerable set of address headers.
public:
AddressHeaderCollection(System::Collections::Generic::IEnumerable<System::ServiceModel::Channels::AddressHeader ^> ^ addressHeaders);
public AddressHeaderCollection (System.Collections.Generic.IEnumerable<System.ServiceModel.Channels.AddressHeader> addressHeaders);
new System.ServiceModel.Channels.AddressHeaderCollection : seq<System.ServiceModel.Channels.AddressHeader> -> System.ServiceModel.Channels.AddressHeaderCollection
Public Sub New (addressHeaders As IEnumerable(Of AddressHeader))
Parameters
- addressHeaders
- IEnumerable<AddressHeader>
The IEnumerable<T> set of AddressHeader objects used to initialize the collection.
Exceptions
One of the address headers in the addressHeaders
parameter is null
.
Examples
The following code snippet illustrates how to create an instance of AddressHeaderCollection class.