Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AddressHeader::CreateAddressHeader Method (String^, String^, Object^)

 

Creates a new instance of the AddressHeader class with a specified value, name and namespace.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
static AddressHeader^ CreateAddressHeader(
	String^ name,
	String^ ns,
	Object^ value
)

Parameters

name
Type: System::String^

The name of the address header.

ns
Type: System::String^

The namespace of the address header.

value
Type: System::Object^

The information item for the address header.

Return Value

Type: System.ServiceModel.Channels::AddressHeader^

The AddressHeader with the specified name and ns that contains the information item specified by value.

Exception Condition
ArgumentNullException

The name is null or name.Length == 0.

The following example shows how to create an address header using this method.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft