共用方式為


IProcessSecurityContext.SecurePassword 屬性

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

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Property SecurePassword As SecureString 
    Get 
    Set
'用途
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)

屬性值

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

備註

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.

請參閱

參考

IProcessSecurityContext 介面

Microsoft.SqlServer.Replication 命名空間