共用方式為


ServerException.ExtractIdentityName Method

Parses a SqlError message and extracts the field identified by the key. The field is treated as an Identity ID, and the ID is translated to a Display Name.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
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
)
protected:
static String^ ExtractIdentityName(
    TeamFoundationRequestContext^ requestContext, 
    SqlError^ error, 
    String^ key
)
static member ExtractIdentityName : 
        requestContext:TeamFoundationRequestContext * 
        error:SqlError * 
        key:string -> string
protected static function ExtractIdentityName(
    requestContext : TeamFoundationRequestContext, 
    error : SqlError, 
    key : String
) : String

Parameters

Return Value

Type: System.String
An Identity, or the empty string.

Remarks

Searches for the pattern %key=value% and returns value.

.NET Framework Security

See Also

Reference

ServerException Class

Microsoft.TeamFoundation.VersionControl.Server Namespace