Share via


HttpChannel.Keys プロパティ

定義

チャネル プロパティに関連付けられているキーの ICollection を取得します。

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

プロパティ値

チャネル プロパティに関連付けられているキーの ICollection

次のコード例は、Keys プロパティの使用方法を示しています。 このコード例は、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]);
}

注釈

チャネル プロパティは、実行時にチャネルを構成するために使用されます。 使用可能なチャネル プロパティの一覧と例については、「 チャネルとフォーマッタの構成プロパティ」を参照してください。

適用対象

こちらもご覧ください