SerializationMode Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the serialization method used for a ProfilePropertySettings object.
public enum class SerializationMode
public enum SerializationMode
type SerializationMode =
Public Enum SerializationMode
- Inheritance
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. |
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
The SerializeAs property of the ProfilePropertySettings object controls the serialization mode for a single profile property setting.
Produit | Versions |
---|---|
.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 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :