HttpClientChannel Constructor (String, IClientChannelSinkProvider)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the HttpClientChannel class with the specified name and sink.

Namespace:   System.Runtime.Remoting.Channels.Http
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

public HttpClientChannel(
	string name,
	IClientChannelSinkProvider sinkProvider
)

Parameters

name
Type: System.String

The name of the new instance of the HttpClientChannel.

sinkProvider
Type: System.Runtime.Remoting.Channels.IClientChannelSinkProvider

The IClientChannelSinkProvider to be used by the channel.

This constructor sets the ChannelName property using the name parameter.

The following code example shows how to use this constructor.

// Create a client channel.
string name = "RemotingClient";
IClientChannelSinkProvider sinkProvider = null;
HttpClientChannel clientChannel = new HttpClientChannel(name,
    sinkProvider);

.NET Framework
Available since 1.1
Return to top
Show: