Editar

Partilhar via


UserNamePasswordClientCredential Class

Definition

Represents a client credential based on user name and password.

public ref class UserNamePasswordClientCredential sealed
public sealed class UserNamePasswordClientCredential
type UserNamePasswordClientCredential = class
Public NotInheritable Class UserNamePasswordClientCredential
Inheritance
UserNamePasswordClientCredential

Remarks

This class enables the user to configure the user name and password for a WCFChannelFactory credential when using user name/password authentication. If the channel factory's binding is not configured to use user name/password-based authentication, the user name and password are not used. If the channel factory's binding is configured to use federated security that requires getting an issued token from a security token service, the user name and password are also presented to the security token service if it requires user name/password authentication.

Properties

Password

Gets or sets the password.

UserName

Gets or sets the user name.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to