语言

ConnectionInfoHelper.GetTokenFromSqlConnection 方法

定义

重载

名称 说明
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 Framework (<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 Framework (<4.6) 中不支持 AccessToken,则为空字符串

适用于