Edit

Share via


HttpChannel.Keys Property

Definition

Gets a ICollection of keys that the channel properties are associated with.

public:
 virtual property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };
public override System.Collections.ICollection Keys { get; }
member this.Keys : System.Collections.ICollection
Public Overrides ReadOnly Property Keys As ICollection

Property Value

A ICollection of keys that the channel properties are associated with.

Examples

The following code example shows how to use the Keys property. This code example is part of a larger example provided for the HttpClientChannel class.

// Display the channel's properties using Keys and Item.
for each(String^ key in clientChannel->Keys)
{
    Console::WriteLine("clientChannel[{0}] = <{1}>", key, clientChannel[key]);
}
// Display the channel's properties using Keys and Item.
foreach(string key in clientChannel.Keys)
{
    Console.WriteLine(
        "clientChannel[{0}] = <{1}>",
        key, clientChannel[key]);
}

Remarks

Channel properties are used to configure the channel at run time. For a list of possible channel properties and an example, see Channel and Formatter Configuration Properties.

Applies to

See also