次の方法で共有


IpcServerChannel コンストラクター

定義

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

オーバーロード

名前 説明
IpcServerChannel(String)

指定した IPC ポート名を使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

IpcServerChannel(IDictionary, IServerChannelSinkProvider)

指定したチャネル プロパティとシンクを使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

IpcServerChannel(String, String)

指定したチャネル名と IPC ポート名を使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

IpcServerChannel(IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

指定したチャネル プロパティ、シンク、およびセキュリティ記述子を使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

IpcServerChannel(String, String, IServerChannelSinkProvider)

指定したチャネル名、IPC ポート名、シンクを使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

IpcServerChannel(String)

指定した IPC ポート名を使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

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

パラメーター

portName
String

チャネルで使用される IPC ポートの名前。

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

// Create and register an IPC channel
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( L"remote" );
ChannelServices::RegisterChannel( serverChannel );
// Create and register an IPC channel
IpcServerChannel serverChannel = new IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);

適用対象

IpcServerChannel(IDictionary, IServerChannelSinkProvider)

指定したチャネル プロパティとシンクを使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

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

パラメーター

properties
IDictionary

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

sinkProvider
IServerChannelSinkProvider

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

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

// 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";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( properties, nullptr );
// Create the server channel.
System.Collections.IDictionary properties =
    new System.Collections.Hashtable();
properties["name"] = "ipc";
properties["priority"] = "20";
properties["portName"] = "localhost:9090";
IpcServerChannel serverChannel =
    new IpcServerChannel(properties, null);

注釈

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

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

注意事項

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

こちらもご覧ください

適用対象

IpcServerChannel(String, String)

指定したチャネル名と IPC ポート名を使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

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

パラメーター

name
String

チャネルの名前。

portName
String

チャネルで使用される IPC ポートの名前。

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

// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName );
// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IpcServerChannel serverChannel =
    new IpcServerChannel(name, portName);

注釈

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

適用対象

IpcServerChannel(IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

指定したチャネル プロパティ、シンク、およびセキュリティ記述子を使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

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

パラメーター

properties
IDictionary

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

sinkProvider
IServerChannelSinkProvider

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

securityDescriptor
CommonSecurityDescriptor

チャネルによって使用される CommonSecurityDescriptor

注釈

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

シンク機能が不要な場合は、 sinkProvider パラメーターを null に設定します。 セキュリティ記述子が不要な場合は、 securityDescriptor パラメーターを null に設定します。

注意事項

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

こちらもご覧ください

適用対象

IpcServerChannel(String, String, IServerChannelSinkProvider)

指定したチャネル名、IPC ポート名、シンクを使用して、 IpcServerChannel クラスの新しいインスタンスを初期化します。

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

パラメーター

name
String

チャネルの名前。

portName
String

チャネルで使用される IPC ポートの名前。

sinkProvider
IServerChannelSinkProvider

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

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

// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IServerChannelSinkProvider^ sinkProvider = nullptr;
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName,sinkProvider );
// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IServerChannelSinkProvider sinkProvider = null;
IpcServerChannel serverChannel =
    new IpcServerChannel(name, portName, sinkProvider);

注釈

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

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

適用対象