XmlSerializationReader.ToEnum(String, Hashtable, String) 方法

定義

從由分隔識別符組成的字串產生數值列舉值,該識別碼代表列舉器列表中的常數。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

protected:
 static long ToEnum(System::String ^ value, System::Collections::Hashtable ^ h, System::String ^ typeName);
protected static long ToEnum(string value, System.Collections.Hashtable h, string typeName);
static member ToEnum : string * System.Collections.Hashtable * string -> int64
Protected Shared Function ToEnum (value As String, h As Hashtable, typeName As String) As Long

參數

value
String

一個由分隔識別碼組成的字串,每個識別碼代表集合列舉器列表中的一個常數。

h
Hashtable

Hashtable A,由標識符作為鍵,常數作為整數組成。

typeName
String

列舉類型的名稱。

傳回

長值由列舉值組成,作為一連串位元運算 OR

備註

XmlSerializationReader 的受保護成員僅供內部在 .NET Framework XML 序列化基礎架構中使用的衍生類別使用。

這個 ToEnum 方法是靜態的。

適用於