Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Parses a SqlError message and extracts the field identified by the key. The field is treated as a Local Path or a Server Path.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Protected Shared Function ExtractLocalOrServerItem ( _
error As SqlError, _
key As String _
) As String
protected static string ExtractLocalOrServerItem(
SqlError error,
string key
)
protected:
static String^ ExtractLocalOrServerItem(
SqlError^ error,
String^ key
)
static member ExtractLocalOrServerItem :
error:SqlError *
key:string -> string
protected static function ExtractLocalOrServerItem(
error : SqlError,
key : String
) : String
Parameters
error
Type: System.Data.SqlClient.SqlErrorThe error to search.
key
Type: System.StringWhich field to look for.
Return Value
Type: System.String
A Local or Server Path, or the empty string
Remarks
Searches for the pattern %key=value% and returns value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.