TypeUsage.CreateDateTimeOffsetTypeUsage(PrimitiveType, Nullable<Byte>) 方法
定义
创建参数所描述类型的 DateTimeOffsetTypeUsage 对象。Creates a DateTimeOffsetTypeUsage object of the type that the parameters describe.
public:
static System::Data::Metadata::Edm::TypeUsage ^ CreateDateTimeOffsetTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, Nullable<System::Byte> precision);
public static System.Data.Metadata.Edm.TypeUsage CreateDateTimeOffsetTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, byte? precision);
static member CreateDateTimeOffsetTypeUsage : System.Data.Metadata.Edm.PrimitiveType * Nullable<byte> -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateDateTimeOffsetTypeUsage (primitiveType As PrimitiveType, precision As Nullable(Of Byte)) As TypeUsage
参数
- primitiveType
- PrimitiveType
定义偏移的度量单位的简单类型。The simple type that defines the units of measurement of the offset.
用秒的小数部分(基于支持的小数位数)表示的 DateTimeOffset 的粒度。The degree of granularity of the DateTimeOffset in fractions of a second, based on the number of decimal places supported. 例如,精度为 3 表示支持的粒度为毫秒。For example a precision of 3 means the granularity supported is milliseconds.
返回
一个 DateTimeOffsetTypeUsage 对象。A DateTimeOffsetTypeUsage object.