System.Runtime.CompilerServices.DateTimeConstantAttribute Class

Persists an 8-byte DateTime constant for a field or parameter.

See Also: DateTimeConstantAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.All, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class DateTimeConstantAttribute : CustomConstantAttribute

Remarks

You can apply this attribute to fields or parameters.

For more information about constant attributes, see the System.Runtime.CompilerServices.CustomConstantAttribute class.

The classes in System.Runtime.CompilerServices are for compiler writers use only.

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0