ConnectionInfoHelper.GetTokenFromSqlConnection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
参数
- conn
- SqlConnection
返回
注解
如果当前 .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
参数
- conn
- SqlConnection
返回
注解
如果当前 .NET Framework (<4.6) 中不支持 AccessToken,则为空字符串