IpcServerChannel.ChannelData 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
채널별 데이터를 가져옵니다.
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 로 캐스팅될 수 있습니다.