語言

ConnectionInfoHelper.GetTokenFromSqlConnection 方法

定義

多載

名稱 Description
GetTokenFromSqlConnection(SqlConnection)

從 SqlConnection 取得 AccessToken

GetTokenFromSqlConnection(SqlConnection)

從 SqlConnection 取得 AccessToken

GetTokenFromSqlConnection(SqlConnection)

從 SqlConnection 取得 AccessToken

public static string GetTokenFromSqlConnection(Microsoft.Data.SqlClient.SqlConnection conn);
static member GetTokenFromSqlConnection : Microsoft.Data.SqlClient.SqlConnection -> string
Public Shared Function GetTokenFromSqlConnection (conn As SqlConnection) As String

參數

傳回

備註

若目前 .NET 框架(<4.6)不支援 AccessToken,則字串將為空。

適用於

GetTokenFromSqlConnection(SqlConnection)

從 SqlConnection 取得 AccessToken

public static string GetTokenFromSqlConnection(System.Data.SqlClient.SqlConnection conn);
static member GetTokenFromSqlConnection : System.Data.SqlClient.SqlConnection -> string
Public Shared Function GetTokenFromSqlConnection (conn As SqlConnection) As String

參數

傳回

備註

若目前 .NET 框架(<4.6)不支援 AccessToken,則字串將為空。

適用於