Partager via


Propriété IProcessSecurityContext.SecurePassword

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

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Syntaxe

'Déclaration
Property SecurePassword As SecureString 
    Get 
    Set
'Utilisation
Dim instance As IProcessSecurityContext 
Dim value As SecureString 

value = instance.SecurePassword

instance.SecurePassword = value
SecureString SecurePassword { get; set; }
property SecureString^ SecurePassword {
    SecureString^ get ();
    void set (SecureString^ value);
}
abstract SecurePassword : SecureString with get, set
function get SecurePassword () : SecureString 
function set SecurePassword (value : SecureString)

Valeur de propriété

Type : System.Security.SecureString
A SecureString object that is an empty string.

Notes

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.

Voir aussi

Référence

IProcessSecurityContext Interface

Espace de noms Microsoft.SqlServer.Replication