Binding.Namespace Propriedade

Definição

Obtém ou define o namespace de XML da associação.Gets or sets the XML namespace of the binding.

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String

Valor da propriedade

String

O namespace XML da associação.The XML namespace of the binding. O valor padrão é " http://tempuri.org/ ".The default value is "http://tempuri.org/".

Exceções

O valor definido não pode ser null.The value set cannot be null.

Comentários

Cada instância de um Binding tem um Name e Namespace que juntos identifica exclusivamente o nome de usuário para a associação nos metadados do serviço.Each instance of a Binding has a Name and Namespace that together uniquely identify the user name for the binding in the metadata of the service.

Esse nome de usuário para a associação é diferente da especificação do nome do protocolo, que é especificado pela Scheme propriedade.This user name for the binding is distinct from the specification of the protocol name, which is specified by the Scheme property. Se você quiser adicionar mais associações HTTP, por exemplo, você pode nomeá-las como desejar e definir todos os seus esquemas como "http".If you want to add more HTTP bindings, for example, you can name them whatever you want and set all of their schemes to "http". Não há nenhum aplicativo ou despacho de máquina inerentes com base no Scheme .There is no inherent application or machine dispatch based on the Scheme. Portanto, você evita o problema comum de não conseguir registrar manipuladores adicionais para protocolos bem conhecidos.So you avoid the common problem of being unable to register additional handlers for well-known protocols. Você também pode trabalhar facilmente com várias versões de uma associação lado a lado dando a cada versão um nome diferente.You can also easily work with multiple versions of a binding side-by-side by giving each version a different name.

Aplica-se a