Compartilhar via


Geral Channel Properties

The seguinte tabela describes the Geral canalizar Properties and Lists the canalizar Types that suporte them.

Propriedade

Descrição

Tipos que suportam essa propriedade

name

A Cadeia de Caracteres that specifies the name of this canalizar. Se você não especificar um nome, um nome padrão é usado que depende do tipo:

HttpChannel : "http"

HttpClientChannel : "cliente HTTP"

HttpServerChannel : "Servidor HTTP"

TcpChannel : "TCP"

TcpClientChannel : "cliente TCP"

TcpServerChannel : "servidor TCP"

IpcChannel : "IPC"

IpcClientChannel : "Cliente IPC"

IpcServerChannel : "servidor IPC"

Cada canal deve ter um nome exclusivo. Set this propriedade to an vazio Cadeia de Caracteres (" " Or String.Empty) If You desejar to ignorar Names, but avoid Naming collisions. O sistema permite que qualquer número de canais com name igual a String.Empty. Essa propriedade é usada para recuperar um canal específico quando chamada ChannelServices.GetChannel. Para obter mais informações, consulte canais.

HttpChannel

HttpServerChannel

HttpClientChannel

TcpChannel

TcpClientChannel

TcpServerChannel

IpcChannel

IpcClientChannel

IpcServerChannel

machineName

A seqüência de caracteres that specifies the Computador name Used with the atual canalizar. Se usado com um canal de servidor, substituirá useIpAddress.

Dica

Geralmente é uma boa idéia para usar o nome sistema de nome de domínio (DNS) (sistema de nome de domínio (DNS)) do computador, mas quando o endereço IP para um cartão interface rede particular (NIC) (normalmente um sem fio NIC) é alterar rapidamente, você deve configurar o aplicativo para usar o machineName para habilitar arquitetura de comunicação remota para localizar a máquina Através DNS.However, when the nome do computador NOT resolver with reasonable speed (if at ALL) and when the computador Has More than One NIC, Either físico or virtual (This is the maiúsculas e minúsculas with often a Discar - up conexão or adaptador de rede VPN), you should Set the propriedade machineName to the endereço IP of the NIC that is currently in use for that conexão.

HttpChannel

HttpClientChannel

HttpServerChannel

TcpChannel

TcpClientChannel

TcpServerChannel

priority

um número inteiro that represents the prioridade Assigned to this canalizar. A chance higher of being chosen to indicate numbers higher conectar Primeiro. A prioridade padrão é 1, e os números negativos são permitidos.

HttpChannel

HttpServerChannel

HttpClientChannel

TcpChannel

TcpClientChannel

TcpServerChannel

IpcChannel

IpcClientChannel

IpcServerChannel

Proteger (TcpChannel)

A Booleano valor (true or false) that specifies Whether Communications on the canalizar are Seguro. O usar como padrão é false. Quando ela é definida como true, a propriedade tokenImpersonationLevel é definida como Identification e a propriedade protectionLevel é definida para EncryptAndSign. Anotação that a Seguro TcpClientChannel May conectar only to a Seguro TcpServerChannel, and a non-Seguro TcpClientChannel May conectar only to a non-Secure TcpServerChannel.

Dica

Se o computador do servidor está executando o Windows 95, Windows 98 ou Windows Me, a TcpServerChannel não é possível especificar mais seguro.

TcpChannel

TcpClientChannel

TcpServerChannel

Proteger (IpcChannel)

A Booleano valor (true or false) that specifies Whether Communications on the canalizar are Seguro. O usar como padrão é false. Quando ela é definida como true, a propriedade tokenImpersonationLevel é definida como Identification. Anotação that a Seguro IpcClientChannel May conectar to Either a Seguro OR non-Seguro IpcServerChannel, but a non-Seguro IpcClientChannel May conectar only to a non-Secure IpcServerChannel.

IpcChannel

IpcClientChannel

IpcServerChannel

protectionLevel

Um valor de tipo ProtectionLevel. The Padrão is None, unless the propriedade secure is set to true, in which maiúsculas e minúsculas the Padrão is EncryptAndSign. You Must Set the propriedade secure to true to Set the propriedade ProtectionLevel to Any valor Outro than None.

Anotação that None is the only configuração that is compatível with Windows 95, Windows 98, or Windows Me.

TcpClientChannel

TcpServerChannel

Consulte também

Tarefas

Como: Configurar um canal em um arquivo de configuração

Como: Configurar um canal de forma programática

Conceitos

Configuração de aplicativos remoto

Configuração de objetos remotos

Configuração de objetos remotos

Outros recursos

Esquema configurações Remoting