Aracılığıyla paylaş


UserNamePasswordClientCredential.Password Özellik

Tanım

Parolayı alır veya ayarlar.

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

Özellik Değeri

Parola.

Açıklamalar

Bu özelliği almak veya ayarlamak için, aşağıdaki kodda gösterildiği gibi istemci nesnesinden özelliğinden nesnesine erişin UserNamePasswordClientCredentialUserName .

WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;
myBinding.Security.Message.ClientCredentialType =
    MessageCredentialType.UserName;

CalculatorClient client = new CalculatorClient("default");

client.ClientCredentials.UserName.Password = ReturnPassword();

client.ClientCredentials.UserName.UserName = ReturnUsername();
Dim myBinding As New WSHttpBinding()
myBinding.Security.Mode = SecurityMode.Message
myBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName


Dim client As New CalculatorClient("default")

client.ClientCredentials.UserName.Password = ReturnPassword()

client.ClientCredentials.UserName.UserName = ReturnUsername()

Şunlara uygulanır