次の方法で共有


IBuildServer.GetEnumValue Method

Gets an enumeration value from corresponding localized display text.

Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)

Syntax

'宣言
Function GetEnumValue ( _
    enumType As Type, _
    displayText As String, _
    defaultValue As Object _
) As Object
Object GetEnumValue(
    Type enumType,
    string displayText,
    Object defaultValue
)
Object^ GetEnumValue(
    Type^ enumType, 
    String^ displayText, 
    Object^ defaultValue
)
abstract GetEnumValue : 
        enumType:Type * 
        displayText:string * 
        defaultValue:Object -> Object 
function GetEnumValue(
    enumType : Type, 
    displayText : String, 
    defaultValue : Object
) : Object

Parameters

  • enumType
    Type: System.Type
    The type of the returned enumeration.
  • defaultValue
    Type: System.Object
    The default value - returned if the display text cannot be converted.

Return Value

Type: System.Object
The corresponding enumeration value, or defaultValue if the conversion is unsuccessful.

.NET Framework Security

See Also

Reference

IBuildServer Interface

Microsoft.TeamFoundation.Build.Client Namespace