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);

注釈

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

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

こちらもご覧ください

適用対象

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);

注釈

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

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

適用対象