HttpClientChannel.Item Property (Object)

 

Returns the specified channel property.

Namespace:   System.Runtime.Remoting.Channels.Http
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

public override object this[
	object key
] { get; set; }

Parameters

key
Type: System.Object

The key of the channel property to retrieve.

Property Value

Type: System.Object

A Object that represents the channel property specified by key.

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

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

.NET Framework
Available since 1.1
Return to top
Show: