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

注釈

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

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

注意事項

引数で properties プロパティを exclusiveAddressUsefalse設定すると、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);

注釈

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

適用対象

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

注釈

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

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

注意事項

引数で properties プロパティを exclusiveAddressUsefalse設定すると、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);

注釈

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

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

適用対象