BinaryClientFormatterSinkProvider.CreateSink Metodo

Definizione

Crea una catena di sink.

public:
 virtual System::Runtime::Remoting::Channels::IClientChannelSink ^ CreateSink(System::Runtime::Remoting::Channels::IChannelSender ^ channel, System::String ^ url, System::Object ^ remoteChannelData);
public System.Runtime.Remoting.Channels.IClientChannelSink CreateSink(System.Runtime.Remoting.Channels.IChannelSender channel, string url, object remoteChannelData);
abstract member CreateSink : System.Runtime.Remoting.Channels.IChannelSender * string * obj -> System.Runtime.Remoting.Channels.IClientChannelSink
override this.CreateSink : System.Runtime.Remoting.Channels.IChannelSender * string * obj -> System.Runtime.Remoting.Channels.IClientChannelSink
Public Function CreateSink (channel As IChannelSender, url As String, remoteChannelData As Object) As IClientChannelSink

Parametri

channel
IChannelSender

Canale per il quale viene costruita la catena di sink.

url
String

URL dell'oggetto a cui connettersi o l'URI del canale per l'oggetto di destinazione.

remoteChannelData
Object

Oggetto dati del canale che descrive un canale nel server remoto.

Valori restituiti

Primo sink della catena di sink del canale appena formato o null, che indica che questo provider non fornirà o non può fornire una connessione per questo endpoint.

Implementazioni

Commenti

Quando il CreateSink metodo viene chiamato, crea il proprio sink del canale, inoltra la CreateSink chiamata al provider sink successivo nella catena (se presente) e garantisce che il sink successivo e quello corrente siano collegati tra loro.

Si applica a