TeamFoundationServiceException.ExtractStrings 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 ExtractStrings ( _
error As SqlError, _
key As String _
) As List(Of String)
public static List<string> ExtractStrings(
SqlError error,
string key
)
public:
static List<String^>^ ExtractStrings(
SqlError^ error,
String^ key
)
static member ExtractStrings :
error:SqlError *
key:string -> List<string>
public static function ExtractStrings(
error : SqlError,
key : String
) : List<String>
Parameters
error
Type: System.Data.SqlClient.SqlErrorThe error to search.
key
Type: System.StringWhich value to look for.
Return Value
Type: System.Collections.Generic.List<String>
A list of values found for the given key.
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.