Compartilhar via


BinaryClientFormatterSinkProvider.CreateSink Método

Definição

Cria uma cadeia de coletores.

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

Parâmetros

channel
IChannelSender

Canal para o qual esta cadeia de coletores está sendo construída.

url
String

A URL do objeto ao qual se conectar ou o URI do canal para o objeto de destino.

remoteChannelData
Object

Um objeto de dados de canal que descreve um canal no servidor remoto.

Retornos

IClientChannelSink

O primeiro coletor da cadeia de coletores de canal recém-criada ou null, que indica que esse provedor não fornecerá ou não poderá fornecer uma conexão para este ponto de extremidade.

Implementações

Comentários

Quando o CreateSink método é chamado, ele cria seu próprio coletor de canal, encaminha a CreateSink chamada para o próximo provedor de coletores na cadeia (se houver um) e garante que o próximo coletor e o atual estejam vinculados juntos.

Aplica-se a