SqlErrorExtensions.ExtractEnumName Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ExtractEnumName ( _
error As SqlError, _
key As String, _
enumerationType As Type _
) As String
public static string ExtractEnumName(
this SqlError error,
string key,
Type enumerationType
)
[ExtensionAttribute]
public:
static String^ ExtractEnumName(
SqlError^ error,
String^ key,
Type^ enumerationType
)
static member ExtractEnumName :
error:SqlError *
key:string *
enumerationType:Type -> string
public static function ExtractEnumName(
error : SqlError,
key : String,
enumerationType : Type
) : String
Parameters
- error
Type: System.Data.SqlClient.SqlError
- key
Type: System.String
- enumerationType
Type: System.Type
Return Value
Type: System.String
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type SqlError. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
.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.