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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應