TeamFoundationServiceException.ExtractInts 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 ExtractInts ( _
error As SqlError, _
key As String _
) As List(Of Integer)
public static List<int> ExtractInts(
SqlError error,
string key
)
public:
static List<int>^ ExtractInts(
SqlError^ error,
String^ key
)
static member ExtractInts :
error:SqlError *
key:string -> List<int>
public static function ExtractInts(
error : SqlError,
key : String
) : List<int>
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<Int32>
A list of integer values if found.
Remarks
Searches for the pattern %key=value% and returns value as an int.
.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.