Share via


IBuildServer.GetEnumValue 方法

從對應的當地語系化顯示文字取得列舉值。

命名空間:  Microsoft.TeamFoundation.Build.Client
組件:  Microsoft.TeamFoundation.Build.Client (在 Microsoft.TeamFoundation.Build.Client.dll 中)

語法

'宣告
Function GetEnumValue ( _
    enumType As Type, _
    displayText As String, _
    defaultValue As Object _
) As Object
Object GetEnumValue(
    Type enumType,
    string displayText,
    Object defaultValue
)

參數

  • enumType
    型別:System.Type
    傳回的列舉型別。
  • displayText
    型別:System.String
    當地語系化顯示文字。
  • defaultValue
    型別:System.Object
    -傳回的預設值,如果無法轉換顯示文字。

傳回值

型別:System.Object
對應的列舉值或 defaultValue,如果轉換失敗則傳回。

.NET Framework 安全性

請參閱

參考

IBuildServer 介面

Microsoft.TeamFoundation.Build.Client 命名空間