IpcChannel 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
IpcChannel 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| 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 .로 설정합니다.
Caution
인수에서 exclusiveAddressUsefalse 속성을 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
보안 설명자입니다.