Udostępnij za pośrednictwem


IProcessSecurityContext.SecurePassword Property

Definition

Gets or sets the password (as a SecureString object) for the Microsoft Windows security account specified in the Login property.

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

Property Value

A SecureString object that is an empty string.

Remarks

SecurePassword is only used when setting passwords. The actual password is never returned.

You should use SecurePassword instead of Password to provide better security for the password while it exists in memory.

Applies to