DateTimeConstantAttribute Class
Persists an 8-byte DateTime constant for a field or parameter.
For a list of all members of this type, see DateTimeConstantAttribute Members.
System.Object
System.Attribute
System.Runtime.CompilerServices.CustomConstantAttribute
System.Runtime.CompilerServices.DateTimeConstantAttribute
[Visual Basic] <AttributeUsage(AttributeTargets.Field Or _ AttributeTargets.Parameter)> <Serializable> NotInheritable Public Class DateTimeConstantAttribute Inherits CustomConstantAttribute [C#] [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter)] [Serializable] public sealed class DateTimeConstantAttribute : CustomConstantAttribute [C++] [AttributeUsage(AttributeTargets::Field | AttributeTargets::Parameter)] [Serializable] public __gc __sealed class DateTimeConstantAttribute : public CustomConstantAttribute [JScript] public AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter) Serializable class DateTimeConstantAttribute extends CustomConstantAttribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
You can apply this attribute to fields or parameters.
For more information about constant attributes, see the CustomConstantAttribute class.
The classes in System.Runtime.CompilerServices are for compiler writers use only.
Requirements
Namespace: System.Runtime.CompilerServices
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)
See Also
DateTimeConstantAttribute Members | System.Runtime.CompilerServices Namespace