次の方法で共有


IpcClientChannel コンストラクター

定義

IpcServerChannel クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
IpcClientChannel()

IpcServerChannel クラスの新しいインスタンスを初期化します。

IpcClientChannel(IDictionary, IClientChannelSinkProvider)

指定した構成プロパティとシンクを使用して、 IpcClientChannel クラスの新しいインスタンスを初期化します。

IpcClientChannel(String, IClientChannelSinkProvider)

指定した名前とシンクを使用して、 IpcClientChannel クラスの新しいインスタンスを初期化します。

IpcClientChannel()

IpcServerChannel クラスの新しいインスタンスを初期化します。

public:
 IpcClientChannel();
public IpcClientChannel();
Public Sub New ()

次のコード例は、このコンストラクターの使用方法を示しています。

IpcClientChannel^ clientChannel = gcnew IpcClientChannel;
ChannelServices::RegisterChannel( clientChannel );
IpcClientChannel clientChannel = new IpcClientChannel();
ChannelServices.RegisterChannel(clientChannel);

注釈

このコンストラクターによって返される TcpClientChannel インスタンスの構成プロパティはすべて既定値に設定されます。 次の表に、各構成プロパティの既定値を示します。

構成プロパティ 説明
name 既定の名前は "ipc client" です。 各チャネルには一意の名前が必要です。
priority 既定の優先度は 1 です。

適用対象

IpcClientChannel(IDictionary, IClientChannelSinkProvider)

指定した構成プロパティとシンクを使用して、 IpcClientChannel クラスの新しいインスタンスを初期化します。

public:
 IpcClientChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IClientChannelSinkProvider ^ sinkProvider);
public IpcClientChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IClientChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcClientChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IClientChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcClientChannel
Public Sub New (properties As IDictionary, sinkProvider As IClientChannelSinkProvider)

パラメーター

properties
IDictionary

チャネルで使用する構成プロパティの値を指定する IDictionary コレクション。

sinkProvider
IClientChannelSinkProvider

チャネルによって使用される IServerChannelSinkProvider 実装。

次のコード例は、このコンストラクターの使用方法を示しています。

// Create the client channel.
System::Collections::IDictionary^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"name" ] = L"ipc client";
properties->default[ L"priority" ] = L"1";
IClientChannelSinkProvider^ sinkProvider = nullptr;
IpcClientChannel^ clientChannel = gcnew IpcClientChannel( properties,sinkProvider );
// Create the client channel.
System.Collections.IDictionary properties =
    new System.Collections.Hashtable();
properties["name"] = "ipc client";
properties["priority"] = "1";
System.Runtime.Remoting.Channels.IClientChannelSinkProvider
    sinkProvider = null;
IpcClientChannel clientChannel =
    new IpcClientChannel(properties, sinkProvider);

注釈

チャネル構成プロパティの詳細については、「 チャネルとフォーマッタの構成プロパティ」を参照してください。

シンク機能が不要な場合は、 sinkProvider パラメーターを null に設定します。

こちらもご覧ください

適用対象

IpcClientChannel(String, IClientChannelSinkProvider)

指定した名前とシンクを使用して、 IpcClientChannel クラスの新しいインスタンスを初期化します。

public:
 IpcClientChannel(System::String ^ name, System::Runtime::Remoting::Channels::IClientChannelSinkProvider ^ sinkProvider);
public IpcClientChannel(string name, System.Runtime.Remoting.Channels.IClientChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcClientChannel : string * System.Runtime.Remoting.Channels.IClientChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcClientChannel
Public Sub New (name As String, sinkProvider As IClientChannelSinkProvider)

パラメーター

name
String

チャネルの名前。

sinkProvider
IClientChannelSinkProvider

チャネルによって使用される IClientChannelSinkProvider 実装。

次のコード例は、このコンストラクターの使用方法を示しています。

// Create the client channel.
String^ name = L"ipc client";
IClientChannelSinkProvider^ sinkProvider = nullptr;
IpcClientChannel^ clientChannel = gcnew IpcClientChannel( name,sinkProvider );
// Create the client channel.
string name = "ipc client";
System.Runtime.Remoting.Channels.IClientChannelSinkProvider
    sinkProvider = null;
IpcClientChannel clientChannel =
    new IpcClientChannel(name, sinkProvider);

注釈

このコンストラクターは、name パラメーターを使用してChannelName プロパティを設定します。 複数のチャネルを登録する場合は、各チャネルに一意の名前が必要です。

シンク機能が不要な場合は、 sinkProvider パラメーターを null に設定します。

適用対象