Modifica

Condividi tramite


XmlSerializationReader.ToEnum(String, Hashtable, String) Method

Definition

Produces a numeric enumeration value from a string that consists of delimited identifiers that represent constants from the enumerator list.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

value
String

A string that consists of delimited identifiers where each identifier represents a constant from the set enumerator list.

h
Hashtable

A Hashtable that consists of the identifiers as keys and the constants as integral numbers.

typeName
String

The name of the enumeration type.

Returns

A long value that consists of the enumeration value as a series of bitwise OR operations.

Remarks

The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

The ToEnum method is static.

Applies to