DateTimeSerializationSection クラス
System.DateTime インスタンスの XML シリアル化の構成設定を処理します。
構文
class DateTimeSerializationSection : ConfigurationSection
メソッド
次の表に、DateTimeSerializationSection
クラスによって公開されるメソッドの一覧を示します。
名前 | 説明 |
---|---|
GetAllowDefinition | (ConfigurationSection から継承。) |
GetAllowLocation | (ConfigurationSection から継承。) |
RevertToParent | (ConfigurationSection から継承。) |
SetAllowDefinition | (ConfigurationSection から継承。) |
SetAllowLocation | (ConfigurationSection から継承。) |
プロパティ
次の表は、DateTimeSerializationSection
クラスによって公開されるプロパティの一覧です。
名前 | 説明 |
---|---|
Location |
(ConfigurationSection から継承。)キー プロパティ。 |
Mode |
DateTime インスタンスのシリアル化形式を決定する読み取り/書き込みの sint32 値。 使用できる値の一覧は、後述の「注釈」セクションに示します。 |
Path |
(ConfigurationSection から継承。)キー プロパティ。 |
SectionInformation |
(ConfigurationSection から継承。) |
サブクラス
このクラスにはサブクラスが含まれていません。
解説
次の表に、Mode
プロパティとして使用できる値の一覧を示します。
Value | キーワード | 説明 |
---|---|---|
0 | Default |
Roundtrip と同じです。 |
1 | Roundtrip |
シリアライザーは DateTime インスタンスを調べて、シリアル化形式が世界協定時刻 (UTC)、ローカル、または未指定のいずれかを判断し、この情報が保持されるようにインスタンスをシリアル化します。 この設定は、.NET Framework のバージョン 1.0 または 1.1 と通信しないすべての新しいアプリケーションで使用する必要があります。 |
2 | Local |
シリアライザーは、すべての DateTime オブジェクトを現地時間としてフォーマットします。 注: .NET Framework 1.0 および 1.1 では、DateTime オブジェクトは常にローカル時刻として書式設定されます。 つまり、ローカル タイム ゾーンの情報が、シリアル化されたデータに必ず組み込まれます。 .NET Framework 1.0 および 1.1 との互換性を保証するには、この設定を使用します。 |
継承階層
DateTimeSerializationSection
要件
型 | 説明 |
---|---|
クライアント | - Windows Vista 上の IIS 7.0 - Windows 7 上の IIS 7.5 - Windows 8 上の IIS 8.0 - Windows 10 上の IIS 10.0 |
[サーバー] | - Windows Server 2008 上の IIS 7.0 - Windows Server 2008 R2 上の IIS 7.5 - Windows Server 2012 上の IIS 8.0 - Windows Server 2012 R2 上の IIS 8.5 - Windows Server 2016 上の IIS 10.0 |
Product | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 |
MOF ファイル | WebAdministration.mof |
参照
ConfigurationSection クラス
System.Xml.Serialization.Configuration.DateTimeSerializationSection.DateTimeSerializationMode 列挙型
System.DateTime 構造体