다음을 통해 공유


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

설명

채널 속성은 런타임에 채널을 구성하는 데 사용됩니다. 가능한 채널 속성 목록 및 예제는 채널 및 포맷터 구성 속성을 참조하세요.

적용 대상

추가 정보