IpcServerChannel.ChannelData 속성

정의

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

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

속성 값

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

구현

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 ChannelData .

// Show the URIs associated with the channel.
System::Runtime::Remoting::Channels::ChannelDataStore^ channelData = 
   static_cast<System::Runtime::Remoting::Channels::ChannelDataStore^>
      (serverChannel->ChannelData);
System::Collections::IEnumerator^ myEnum = channelData->ChannelUris->GetEnumerator();
while ( myEnum->MoveNext() )
{
   String^ uri = safe_cast<String^>( myEnum->Current );
   Console::WriteLine( L"The channel URI is {0}.",uri );
}
// Show the URIs associated with the channel.
System.Runtime.Remoting.Channels.ChannelDataStore channelData =
    (System.Runtime.Remoting.Channels.ChannelDataStore)
    serverChannel.ChannelData;
foreach (string uri in channelData.ChannelUris)
{
    Console.WriteLine("The channel URI is {0}.", uri);
}

설명

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

적용 대상