Επεξεργασία

Κοινή χρήση μέσω


TypeUsage.CreateDateTimeTypeUsage(PrimitiveType, Nullable<Byte>) Method

Definition

Creates a DateTimeTypeUsage object of the type that the parameters describe.

public:
 static System::Data::Metadata::Edm::TypeUsage ^ CreateDateTimeTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, Nullable<System::Byte> precision);
public static System.Data.Metadata.Edm.TypeUsage CreateDateTimeTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, byte? precision);
static member CreateDateTimeTypeUsage : System.Data.Metadata.Edm.PrimitiveType * Nullable<byte> -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateDateTimeTypeUsage (primitiveType As PrimitiveType, precision As Nullable(Of Byte)) As TypeUsage

Parameters

primitiveType
PrimitiveType

The simple type that defines the units of measurement of the DateTime object.

precision
Nullable<Byte>

The degree of granularity of the DateTimeOffset in fractions of a second, based on the number of decimal places supported. For example a precision of 3 means the granularity supported is milliseconds.

Returns

A DateTimeTypeUsage object.

Applies to