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 string FromEnum(long value, string[] values, long[] ids);

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

.NET 10 e outras versões
Produto Versões
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

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 string FromEnum(long value, string[] values, long[] ids, string typeName);

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

.NET 10 e outras versões
Produto Versões
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1