Partager via


TeamFoundationServiceException.ExtractString Method

Parses a SqlError message and extracts the field identified by the key.

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

Syntax

'Declaration
Public Shared Function ExtractString ( _
    error As SqlError, _
    key As String _
) As String
public static string ExtractString(
    SqlError error,
    string key
)
public:
static String^ ExtractString(
    SqlError^ error, 
    String^ key
)
static member ExtractString : 
        error:SqlError * 
        key:string -> string
public static function ExtractString(
    error : SqlError, 
    key : String
) : String

Parameters

Return Value

Type: System.String
The extracted string value, or the empty string if not found.

Remarks

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

.NET Framework Security

See Also

Reference

TeamFoundationServiceException Class

Microsoft.TeamFoundation.Framework.Server Namespace