Compartilhar via


OperationDescription.ProtectionLevel Propriedade

Definição

Obtém ou define o nível de proteção para a operação.

public:
 property System::Net::Security::ProtectionLevel ProtectionLevel { System::Net::Security::ProtectionLevel get(); void set(System::Net::Security::ProtectionLevel value); };
public System.Net.Security.ProtectionLevel ProtectionLevel { get; set; }
member this.ProtectionLevel : System.Net.Security.ProtectionLevel with get, set
Public Property ProtectionLevel As ProtectionLevel

Valor da propriedade

ProtectionLevel

A ProtectionLevel para a operação.

Comentários

A ProtectionLevel propriedade controla se as mensagens de uma operação devem ser criptografadas, assinadas ou ambas. O valor definido aqui é o valor padrão para todas as mensagens especificadas para esta operação, a menos que um escopo mais estreito substitua esse valor.

ProtectionLevelcorresponde à ProtectionLevel propriedade no modelo de programação do WCF (Windows Communication Foundation).

Quando o ProtectionLevel conjunto é definido, a HasProtectionLevel propriedade é definida como true.

Aplica-se a