Свойство 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.
См. также