Partager via


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

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

See Also

Reference

SqlErrorExtensions Class

Microsoft.TeamFoundation.Framework.Server Namespace