IpcClientChannel 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
IpcServerChannel 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| IpcClientChannel() |
IpcServerChannel 클래스의 새 인스턴스를 초기화합니다. |
| IpcClientChannel(IDictionary, IClientChannelSinkProvider) |
지정된 구성 속성 및 싱크를 IpcClientChannel 사용하여 클래스의 새 인스턴스를 초기화합니다. |
| IpcClientChannel(String, IClientChannelSinkProvider) |
지정된 이름과 싱크를 사용하여 클래스의 IpcClientChannel 새 인스턴스를 초기화합니다. |
IpcClientChannel()
IpcServerChannel 클래스의 새 인스턴스를 초기화합니다.
public:
IpcClientChannel();
public IpcClientChannel();
Public Sub New ()
예제
다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 있습니다.
IpcClientChannel^ clientChannel = gcnew IpcClientChannel;
ChannelServices::RegisterChannel( clientChannel );
IpcClientChannel clientChannel = new IpcClientChannel();
ChannelServices.RegisterChannel(clientChannel);
설명
이 생성자가 반환하는 인스턴스의 TcpClientChannel 구성 속성은 모두 기본값으로 설정됩니다. 다음 표에는 각 구성 속성의 기본값이 표시됩니다.
| 구성 속성 | Description |
|---|---|
name |
기본 이름은 "ipc 클라이언트"입니다. 각 채널에는 고유한 이름이 있어야 합니다. |
priority |
기본 우선 순위는 1입니다. |
적용 대상
IpcClientChannel(IDictionary, IClientChannelSinkProvider)
지정된 구성 속성 및 싱크를 IpcClientChannel 사용하여 클래스의 새 인스턴스를 초기화합니다.
public:
IpcClientChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IClientChannelSinkProvider ^ sinkProvider);
public IpcClientChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IClientChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcClientChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IClientChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcClientChannel
Public Sub New (properties As IDictionary, sinkProvider As IClientChannelSinkProvider)
매개 변수
- properties
- IDictionary
IDictionary 채널에서 사용할 구성 속성의 값을 지정하는 컬렉션입니다.
- sinkProvider
- IClientChannelSinkProvider
IServerChannelSinkProvider 채널에서 사용할 구현입니다.
예제
다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 있습니다.
// Create the client channel.
System::Collections::IDictionary^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"name" ] = L"ipc client";
properties->default[ L"priority" ] = L"1";
IClientChannelSinkProvider^ sinkProvider = nullptr;
IpcClientChannel^ clientChannel = gcnew IpcClientChannel( properties,sinkProvider );
// Create the client channel.
System.Collections.IDictionary properties =
new System.Collections.Hashtable();
properties["name"] = "ipc client";
properties["priority"] = "1";
System.Runtime.Remoting.Channels.IClientChannelSinkProvider
sinkProvider = null;
IpcClientChannel clientChannel =
new IpcClientChannel(properties, sinkProvider);
설명
채널 구성 속성에 대한 자세한 내용은 채널 및 포맷터 구성 속성을 참조하세요.
싱크 기능이 필요하지 않은 경우 매개 변수sinkProvider를 null .로 설정합니다.
추가 정보
적용 대상
IpcClientChannel(String, IClientChannelSinkProvider)
지정된 이름과 싱크를 사용하여 클래스의 IpcClientChannel 새 인스턴스를 초기화합니다.
public:
IpcClientChannel(System::String ^ name, System::Runtime::Remoting::Channels::IClientChannelSinkProvider ^ sinkProvider);
public IpcClientChannel(string name, System.Runtime.Remoting.Channels.IClientChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcClientChannel : string * System.Runtime.Remoting.Channels.IClientChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcClientChannel
Public Sub New (name As String, sinkProvider As IClientChannelSinkProvider)
매개 변수
- name
- String
채널의 이름입니다.
- sinkProvider
- IClientChannelSinkProvider
IClientChannelSinkProvider 채널에서 사용할 구현입니다.
예제
다음 코드 예제에서는이 생성자를 사용 하는 방법을 보여 있습니다.
// Create the client channel.
String^ name = L"ipc client";
IClientChannelSinkProvider^ sinkProvider = nullptr;
IpcClientChannel^ clientChannel = gcnew IpcClientChannel( name,sinkProvider );
// Create the client channel.
string name = "ipc client";
System.Runtime.Remoting.Channels.IClientChannelSinkProvider
sinkProvider = null;
IpcClientChannel clientChannel =
new IpcClientChannel(name, sinkProvider);
설명
이 생성자는 매개 변수를 ChannelName 사용하여 name 속성을 설정합니다. 둘 이상의 채널을 등록하려면 각 채널에 고유한 이름이 있어야 합니다.
싱크 기능이 필요하지 않은 경우 매개 변수sinkProvider를 null .로 설정합니다.