This documentation is archived and is not being maintained.
IBuildServer.GetEnumValue Method
Visual Studio 2013
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)
function GetEnumValue(
enumType : Type,
displayText : String,
defaultValue : Object
) : Object
Parameters
- enumType
- Type: System.Type
The type of the returned enumeration.
- displayText
- Type: System.String
The localized display text.
- defaultValue
- Type: System.Object
The default value - returned if the display text cannot be converted.
Return Value
Type: System.ObjectThe corresponding enumeration value, or defaultValue if the conversion is unsuccessful.
- 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.
Show: