Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DateTimeSerializationSection Class [IIS 7 and higher]

IIS 7.0

Handles configuration settings for XML serialization of System.DateTime instances.

class DateTimeSerializationSection : ConfigurationSection

The following table lists the methods exposed by the DateTimeSerializationSection class.

Name

Description

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

The following table lists the properties exposed by the DateTimeSerializationSection class.

Name

Description

Location

(Inherited from ConfigurationSection.) A key property.

Mode

A read/write sint32 value that determines the serialization format for DateTime instances. The possible values are listed later in the Remarks section.

Path

(Inherited from ConfigurationSection.) A key property.

SectionInformation

(Inherited from ConfigurationSection.)

This class contains no subclasses.

The following table lists the possible values for the Mode property.

Value

Keyword

Description

0

Default

The same as Roundtrip.

1

Roundtrip

The serializer examines the DateTime instance to determine whether the serialization format is Coordinated Universal Time (UTC), local, or unspecified, and it serializes the instance in such a way that this information is preserved. You should use this setting for all new applications that do not communicate with versions 1.0 or 1.1 of the .NET Framework.

2

Local

The serializer formats all DateTime objects as local time.

NoteNote:
In the .NET Framework 1.0 and 1.1, DateTime objects are always formatted as the local time. That is, local time zone information is always included with the serialized data. Use this setting to guarantee compatibility with the .NET Framework 1.0 and 1.1.

ConfigurationSection

   DateTimeSerializationSection

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.