MessageHeaders::Item Property (Int32)

 

Retrieves a header at the given index.

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

public:
property MessageHeaderInfo^ default[
	int index
] {
	MessageHeaderInfo^ get(int index);
}

Parameters

index
Type: System::Int32

The zero-based index of the header in the list.

Property Value

Type: System.ServiceModel.Channels::MessageHeaderInfo^

The MessageHeaderInfo in the collection. If index is greater than or equal to the number of headers in the list, this returns null.

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: