Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
Object GetEnumValue(
	Type enumType,
	string displayText,
	Object defaultValue
)

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. This value is returned if the display text cannot be converted.

Return Value

Type: System.Object
Returns the corresponding enumeration value or the defaultValue if the conversion is unsuccessful.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.