다음을 통해 공유


IServerChannelSinkProvider.CreateSink(IChannelReceiver) 메서드

정의

싱크 체인을 만듭니다.

public:
 System::Runtime::Remoting::Channels::IServerChannelSink ^ CreateSink(System::Runtime::Remoting::Channels::IChannelReceiver ^ channel);
public System.Runtime.Remoting.Channels.IServerChannelSink CreateSink (System.Runtime.Remoting.Channels.IChannelReceiver channel);
[System.Security.SecurityCritical]
public System.Runtime.Remoting.Channels.IServerChannelSink CreateSink (System.Runtime.Remoting.Channels.IChannelReceiver channel);
abstract member CreateSink : System.Runtime.Remoting.Channels.IChannelReceiver -> System.Runtime.Remoting.Channels.IServerChannelSink
[<System.Security.SecurityCritical>]
abstract member CreateSink : System.Runtime.Remoting.Channels.IChannelReceiver -> System.Runtime.Remoting.Channels.IServerChannelSink
Public Function CreateSink (channel As IChannelReceiver) As IServerChannelSink

매개 변수

channel
IChannelReceiver

채널 싱크 체인을 만들 채널입니다.

반환

새로 구성된 채널 싱크 체인의 첫째 싱크이거나, 이 공급자가 이 엔드포인트에 대한 연결을 제공하지 않거나 제공할 수 없음을 나타내는 null입니다.

특성

예외

직접 실행 호출자에 인프라 권한이 없는 경우

예제

IServerChannelSink^ nextSink = nullptr;
if ( nextProvider != nullptr )
{
   Console::WriteLine( "The next server provider is:{0}", nextProvider );

   // Create a sink chain calling the 'SaopServerFormatterProvider'
   // 'CreateSink' method.
   nextSink = nextProvider->CreateSink( channel );
}

return gcnew MyServerChannelSink( nextSink );
IServerChannelSink nextSink = null;
if (nextProvider != null)
{
      Console.WriteLine("The next server provider is:"
                                       +nextProvider);
   // Create a sink chain calling the 'SaopServerFormatterProvider'
   // 'CreateSink' method.
   nextSink = nextProvider.CreateSink(channel);
}
return new MyServerChannelSink(nextSink);
Dim nextSink As IServerChannelSink = Nothing
If Not (nextProvider Is Nothing) Then
    Console.WriteLine("The next server provider is:" + CType(nextProvider,Object).ToString())
    ' Create a sink chain calling the 'SaopServerFormatterProvider'
    ' 'CreateSink' method.
    nextSink = nextProvider.CreateSink(channel)
End If
Return New MyServerChannelSink(nextSink)

적용 대상