ConnectionInfoHelper.GetTokenFromSqlConnection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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
參數
- conn
- SqlConnection
傳回
備註
若目前 .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
參數
- conn
- SqlConnection
傳回
備註
若目前 .NET 框架(<4.6)不支援 AccessToken,則字串將為空。