IpcServerChannel 생성자

정의

IpcServerChannel 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
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 .로 설정합니다.

주의

인수에서 exclusiveAddressUsefalse 속성을 properties 설정할 때 동일한 명명된 파이프에 대해 여러 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

채널에서 사용할 A CommonSecurityDescriptor 입니다.

설명

싱크 기능이 필요하지 않은 경우 매개 변수sinkProvidernull .로 설정합니다. 보안 설명자가 필요하지 않은 경우 매개 변수securityDescriptornull .로 설정합니다.

주의

인수에서 exclusiveAddressUsefalse 속성을 properties 설정할 때 동일한 명명된 파이프에 대해 여러 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 .로 설정합니다.

적용 대상