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

Definition

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

C#
public static System.Data.Metadata.Edm.TypeUsage CreateTimeTypeUsage(System.Data.Metadata.Edm.PrimitiveType primitiveType, byte? precision);

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 TimeTypeUsage object.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1