SqlAuthenticationMethod 列舉

定義

描述用戶端可用來連接到 Azure SQL Database 的不同 SQL 驗證方法。 如需詳細資訊,請參閱使用 Azure Active Directory 驗證連接到 SQL DatabaseFor details, see Connecting to SQL Database By Using Azure Active Directory Authentication.

public enum class SqlAuthenticationMethod
public enum SqlAuthenticationMethod
type SqlAuthenticationMethod = 
Public Enum SqlAuthenticationMethod
繼承
SqlAuthenticationMethod

欄位

ActiveDirectoryIntegrated 3

驗證方法使用整合 Active Directory。The authentication method uses Active Directory Integrated. 搭配整合式 Windows 驗證使用整合 Active Directory 連接到 SQL Database。Use Active Directory Integrated to connect to a SQL Database using integrated Windows authentication.

ActiveDirectoryInteractive 4

驗證方法使用 Active Directory Interactive。The authentication method uses Active Directory Interactive. .NET Framework 4.7.2 (含) 以後的版本皆提供。Available since .NET Framework 4.7.2.

ActiveDirectoryPassword 2

驗證方法使用 Active Directory 密碼。The authentication method uses Active Directory Password. 搭配 Azure AD 主體名稱和密碼使用 Active Directory 密碼連接到 SQL Database。Use Active Directory Password to connect to a SQL Database using an Azure AD principal name and password.

NotSpecified 0

未指定驗證方法。The authentication method is not specified.

SqlPassword 1

驗證方法是 SQL 密碼。The authentication method is Sql Password.

適用於