Share via


HttpChannel.Item[Object] プロパティ

定義

指定されたチャネル プロパティを返します。

public:
 virtual property System::Object ^ default[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
public override object this[object key] { get; set; }
member this.Item(obj) : obj with get, set
Default Public Overrides Property Item(key As Object) As Object

パラメーター

key
Object

取得するチャネル プロパティのキー。

プロパティ値

key で指定したチャネル プロパティを表す Object

次のコード例は、Item[] プロパティの使用方法を示しています。 このコード例は、HttpClientChannel クラスのために提供されている大規模な例の一部です。

// 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]);
}

適用対象