ServerException.ExtractIdentityName 方法

解析 SqlError 訊息並擷取索引鍵所識別的欄位。 欄位會將識別 ID,然後, ID 轉譯為顯示名稱。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
Protected Shared Function ExtractIdentityName ( _
    requestContext As TeamFoundationRequestContext, _
    error As SqlError, _
    key As String _
) As String
protected static string ExtractIdentityName(
    TeamFoundationRequestContext requestContext,
    SqlError error,
    string key
)

參數

傳回值

類型:System.String
識別或空字串。

備註

搜尋模式 %key=value% 和傳回值。

.NET Framework 安全性

請參閱

參考

ServerException 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間