AuthenticationType 屬性
此 API 支援 基礎結構,但無法直接從您的程式碼使用。
不要直接在程式碼中參照此成員。其支援 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 驗證。