TcpServerChannel.ChannelData 속성

정의

채널별 데이터를 가져옵니다.

public:
 property System::Object ^ ChannelData { System::Object ^ get(); };
public object ChannelData { get; }
member this.ChannelData : obj
Public ReadOnly Property ChannelData As Object

속성 값

ChannelDataStore 채널별 데이터를 포함하는 인스턴스입니다.

구현

예제

다음 코드 예제에서는이 속성의 사용을 보여 있습니다.

// Show the URIs associated with the channel.
ChannelDataStore^ data = dynamic_cast<ChannelDataStore^>(serverChannel->ChannelData);
System::Collections::IEnumerator^ myEnum = data->ChannelUris->GetEnumerator();
while ( myEnum->MoveNext() )
{
   String^ uri = safe_cast<String^>(myEnum->Current);
   Console::WriteLine( uri );
}
// Show the URIs associated with the channel.
ChannelDataStore data = (ChannelDataStore) serverChannel.ChannelData;
foreach (string uri in data.ChannelUris)
{
    Console.WriteLine(uri);
}

설명

인스턴스 System.Object로 반환되지만 이 속성의 값은 개체가 수신 대기하는 채널을 설명하는 인스턴스 ChannelDataStoreTcpServerChannel 캐스팅될 수 있습니다.

적용 대상