แก้ไข

แชร์ผ่าน


XmlSerializationWriter.FromEnum Method

Definition

Takes a numeric enumeration value and returns a string that consists of delimited identifiers that represent the enumeration members that have been set.

Overloads

FromEnum(Int64, String[], Int64[])

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

Produces a string that consists of delimited identifiers that represent the enumeration members that have been set.

FromEnum(Int64, String[], Int64[], String)

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

Takes a numeric enumeration value and the names and constants from the enumerator list for the enumeration and returns a string that consists of delimited identifiers that represent the enumeration members that have been set.

Remarks

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

FromEnum(Int64, String[], Int64[])

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Produces a string that consists of delimited identifiers that represent the enumeration members that have been set.

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

protected:
 static System::String ^ FromEnum(long value, cli::array <System::String ^> ^ values, cli::array <long> ^ ids);
protected static string FromEnum (long value, string[] values, long[] ids);
static member FromEnum : int64 * string[] * int64[] -> string
Protected Shared Function FromEnum (value As Long, values As String(), ids As Long()) As String

Parameters

value
Int64

The enumeration value as a series of bitwise OR operations.

values
String[]

The enumeration's name values.

ids
Int64[]

The enumeration's constant values.

Returns

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

Remarks

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

The FromEnum method is static.

Applies to

FromEnum(Int64, String[], Int64[], String)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Takes a numeric enumeration value and the names and constants from the enumerator list for the enumeration and returns a string that consists of delimited identifiers that represent the enumeration members that have been set.

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

protected:
 static System::String ^ FromEnum(long value, cli::array <System::String ^> ^ values, cli::array <long> ^ ids, System::String ^ typeName);
protected static string FromEnum (long value, string[] values, long[] ids, string typeName);
static member FromEnum : int64 * string[] * int64[] * string -> string
Protected Shared Function FromEnum (value As Long, values As String(), ids As Long(), typeName As String) As String

Parameters

value
Int64

The enumeration value as a series of bitwise OR operations.

values
String[]

The values of the enumeration.

ids
Int64[]

The constants of the enumeration.

typeName
String

The name of the type.

Returns

A string that consists of delimited identifiers, where each item is one of the values set by the bitwise operation.

Remarks

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

Applies to