Export (0) Print
Expand All

HttpChannel.Item Property

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.

Implements

IDictionary.Item

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft