PublisherConnectionSecurityContext.SecureSqlStandardPassword 属性

定义

使用SQL Server身份验证时,将密码 (设置为SecureString对象) SqlStandardLogin

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

属性值

SecureString 对象。

注解

请尽可能使用 Windows 身份验证。

SecureSqlStandardPassword 属性为密码在内存中存储时提供额外的安全性,应使用而不是 SqlStandardPassword使用。

如果可能,请在运行时提示用户输入安全凭据。 如果必须存储凭据,请使用 Windows .NET Framework 提供的 Cryptographic Services Microsoft (加密服务)。

仅 .NET Framework 的 2.0 版本支持此命名空间、类或成员。

适用于