Udostępnij za pośrednictwem


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

Definicja

DateTimeTypeUsage Tworzy obiekt typu opisanego przez parametry.

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

Parametry

primitiveType
PrimitiveType

Prosty typ, który definiuje jednostki miary DateTime obiektu.

precision
Nullable<Byte>

Stopień szczegółowości DateTimeOffset liczby ułamków sekundy na podstawie liczby obsługiwanych miejsc dziesiętnych. Na przykład dokładność 3 oznacza, że obsługiwany stopień szczegółowości to milisekundy.

Zwraca

DateTimeTypeUsage Obiekt.

Dotyczy