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

注釈

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

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

注意事項

引数で properties プロパティを exclusiveAddressUsefalse設定すると、同じ名前付きパイプに複数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

セキュリティ記述子。

適用対象