UIConnectionInfo.AuthenticationType 属性
此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。
不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Gets or sets a Int32 value that specifies whether the connection dialog should use SQL Server Authentication or Windows Authentication.
命名空间: Microsoft.SqlServer.Management.Smo.RegSvrEnum
程序集: Microsoft.SqlServer.RegSvrEnum(在 Microsoft.SqlServer.RegSvrEnum.dll 中)
语法
声明
Public Property AuthenticationType As Integer
Get
Set
用法
Dim instance As UIConnectionInfo
Dim value As Integer
value = instance.AuthenticationType
instance.AuthenticationType = value
public int AuthenticationType { get; set; }
public:
property int AuthenticationType {
int get ();
void set (int value);
}
member AuthenticationType : int with get, set
function get AuthenticationType () : int
function set AuthenticationType (value : int)
属性值
类型:System.Int32
An Int32 value that specifies 1 if the connection dialog should use SQL Server Authentication or 0 if it should use Windows Authentication.
注释
请尽可能使用 Windows 身份验证。