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

在可能的情况下,提示用户在运行时输入安全凭据。 如果你必须存储凭证,可以使用Microsoft Windows .NET框架提供的加密服务

该命名空间、类或成员仅在 .NET 框架 2.0 版本中支持。

适用于