XmlSerializationReader.ToEnum Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code. Produces a numeric enumeration value from a string that consists of delimited identifiers that represent constants from the enumerator list.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

Syntax

'Declaration
Protected Shared Function ToEnum ( _
    value As String, _
    h As IDictionary, _
    typeName As String _
) As Long
protected static long ToEnum(
    string value,
    IDictionary h,
    string typeName
)

Parameters

  • value
    Type: System.String
    A string that consists of delimited identifiers where each identifier represents a constant from the set enumerator list.

Return Value

Type: System.Int64
A long value that consists of the enumeration value as a series of bitwise OR operations.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.