IpcChannel コンストラクター

定義

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

オーバーロード

名前 説明
IpcChannel()

サーバー チャネルではなく、クライアント チャネルのみをアクティブ化して、 IpcChannel クラスの新しいインスタンスを初期化します。

IpcChannel(String)

指定した IPC ポートをリッスンするサーバー チャネルを使用して、 IpcChannel クラスの新しいインスタンスを初期化します。

IpcChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider)

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

IpcChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider, CommonSecurityDescriptor)

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

IpcChannel()

サーバー チャネルではなく、クライアント チャネルのみをアクティブ化して、 IpcChannel クラスの新しいインスタンスを初期化します。

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

次のコード例は、このコンストラクターの使用方法を示しています。 このコード例は、 IpcChannel クラスに提供されるより大きな例の一部です。

// Create the channel.
IpcChannel^ channel = gcnew IpcChannel;
// Create the channel.
IpcChannel channel = new IpcChannel();

適用対象

IpcChannel(String)

指定した IPC ポートをリッスンするサーバー チャネルを使用して、 IpcChannel クラスの新しいインスタンスを初期化します。

public:
 IpcChannel(System::String ^ portName);
public IpcChannel(string portName);
new System.Runtime.Remoting.Channels.Ipc.IpcChannel : string -> System.Runtime.Remoting.Channels.Ipc.IpcChannel
Public Sub New (portName As String)

パラメーター

portName
String

IPC ポートの名前。

次のコード例は、このコンストラクターの使用方法を示しています。 このコード例は、 IpcChannel クラスに提供されるより大きな例の一部です。

// Create the server channel.
IpcChannel^ serverChannel = gcnew IpcChannel( L"localhost:9090" );
// Create the server channel.
IpcChannel serverChannel =
    new IpcChannel("localhost:9090");

適用対象

IpcChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider)

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

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

パラメーター

properties
IDictionary

クライアントおよびサーバー チャネルで使用する構成プロパティの値を指定する IDictionary コレクション。

clientSinkProvider
IClientChannelSinkProvider

クライアント チャネルによって使用される IClientChannelSinkProvider 実装。

serverSinkProvider
IServerChannelSinkProvider

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

次のコード例は、このコンストラクターの使用方法を示しています。 このコード例は、 IpcChannel クラスに提供されるより大きな例の一部です。

// Create the server channel.
System::Collections::IDictionary^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"name" ] = L"ipc";
properties->default[ L"priority" ] = L"20";
properties->default[ L"portName" ] = L"localhost:9090";
IpcChannel^ serverChannel = gcnew IpcChannel( properties,nullptr,nullptr );
// Create the server channel.
System.Collections.IDictionary properties =
    new System.Collections.Hashtable();
properties["name"] = "ipc";
properties["priority"] = "20";
properties["portName"] = "localhost:9090";
IpcChannel serverChannel = new IpcChannel(properties, null, null);

注釈

チャネル シンクには、チャネルを通過する基になるメッセージへのアクセスと、リモート オブジェクトにメッセージを送信するためにトランスポート メカニズムで使用されるストリームへのアクセスを許可するプラグイン ポイントが用意されています。 チャネル シンクは、クライアントとサーバーの間でメッセージを転送する役割も担います。 チャネル シンクはチェーン内でリンクされ、メッセージが最終的にシリアル化されて転送される前に、すべてのチャネル メッセージがこのシンク チェーンを通過します。 シンク機能が不要な場合は、 clientSinkProvider パラメーターと serverSinkProvider パラメーターを nullに設定します。

注意事項

exclusiveAddressUse プロパティを false 引数にpropertiesするように設定すると、同じ名前付きパイプに複数のIpcServerChannel オブジェクトを登録できます。 このような場合、要求は登録されている任意のチャネルに移動できます。 この設定は、ALC も使用されている場合にのみセキュリティで保護されたと見なされます。

適用対象

IpcChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider, CommonSecurityDescriptor)

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

public:
 IpcChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IClientChannelSinkProvider ^ clientSinkProvider, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ serverSinkProvider, System::Security::AccessControl::CommonSecurityDescriptor ^ securityDescriptor);
public IpcChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IClientChannelSinkProvider clientSinkProvider, System.Runtime.Remoting.Channels.IServerChannelSinkProvider serverSinkProvider, System.Security.AccessControl.CommonSecurityDescriptor securityDescriptor);
new System.Runtime.Remoting.Channels.Ipc.IpcChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IClientChannelSinkProvider * System.Runtime.Remoting.Channels.IServerChannelSinkProvider * System.Security.AccessControl.CommonSecurityDescriptor -> System.Runtime.Remoting.Channels.Ipc.IpcChannel
Public Sub New (properties As IDictionary, clientSinkProvider As IClientChannelSinkProvider, serverSinkProvider As IServerChannelSinkProvider, securityDescriptor As CommonSecurityDescriptor)

パラメーター

properties
IDictionary

クライアントおよびサーバー チャネルで使用する構成プロパティの値を指定する IDictionary コレクション。

clientSinkProvider
IClientChannelSinkProvider

クライアント チャネルによって使用される IClientChannelSinkProvider 実装。

serverSinkProvider
IServerChannelSinkProvider

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

securityDescriptor
CommonSecurityDescriptor

セキュリティ記述子。

適用対象