Επεξεργασία

Κοινή χρήση μέσω


SerializationMode Enum

Definition

Determines the serialization method used for a ProfilePropertySettings object.

public enum class SerializationMode
public enum SerializationMode
type SerializationMode = 
Public Enum SerializationMode
Inheritance
SerializationMode

Fields

Name Value Description
String 0

The ProfilePropertySettings object is serialized to a simple string.

Xml 1

The profile ProfilePropertySettings is serialized as XML using XML serialization.

Binary 2

The ProfilePropertySettings object is serialized using binary serialization.

ProviderSpecific 3

The provider has implicit knowledge of the type and is responsible for deciding how to serialize the ProfilePropertySettings object into the data store.

Examples

The following code example shows how to use the SerializeAs property. This code example is part of a larger example provided for the ProfileSection class.

// Get the current SerializeAs property value.
Console.WriteLine(
    "Current SerializeAs value: '{0}'", profilePropertySettings.SerializeAs);

// Set the SerializeAs property to SerializationMode.Binary.
profilePropertySettings.SerializeAs = SerializationMode.Binary;
' Get the current SerializeAs property value.
Console.WriteLine( _
    "Current SerializeAs value: '{0}'", profilePropertySettings.SerializeAs)

' Set the SerializeAs property to SerializationMode.Binary.
profilePropertySettings.SerializeAs = SerializationMode.Binary

Remarks

The SerializeAs property of the ProfilePropertySettings object controls the serialization mode for a single profile property setting.

Applies to

See also