Share via


PublisherConnectionSecurityContext.SqlStandardPassword 属性

定义

获取或设置使用SQL Server身份验证时的密码SqlStandardLogin

public:
 property System::String ^ SqlStandardPassword { System::String ^ get(); void set(System::String ^ value); };
public string SqlStandardPassword { get; set; }
member this.SqlStandardPassword : string with get, set
Public Property SqlStandardPassword As String

属性值

一个 String 值。

注解

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

仅当 SecurityMode 属性设置为 SqlStandard.

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

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

适用于