IServerChannelSinkProvider.CreateSink(IChannelReceiver) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy łańcuch ujścia.
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
Parametry
- channel
- IChannelReceiver
Kanał, dla którego ma zostać utworzony łańcuch ujścia kanału.
Zwraca
Pierwszy ujście nowo utworzonego łańcucha ujścia kanału lub null, który wskazuje, że ten dostawca nie będzie lub nie może zapewnić połączenia dla tego punktu końcowego.
- Atrybuty
Wyjątki
Bezpośredni obiekt wywołujący nie ma uprawnień do infrastruktury.
Przykłady
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)