Muokkaa

Jaa


TypeUsage.CreateDecimalTypeUsage Method

Definition

Creates a TypeUsage object to describe a decimal type.

Overloads

CreateDecimalTypeUsage(PrimitiveType)

Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values.

CreateDecimalTypeUsage(PrimitiveType, Byte, Byte)

Creates a TypeUsage object to describe a decimal type by using the specified facet values.

CreateDecimalTypeUsage(PrimitiveType)

Creates a TypeUsage object to describe a decimal type with unbounded precision and scale facet values.

public:
 static System::Data::Metadata::Edm::TypeUsage ^ CreateDecimalTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType);
public static System.Data.Metadata.Edm.TypeUsage CreateDecimalTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType);
static member CreateDecimalTypeUsage : System.Data.Metadata.Edm.PrimitiveType -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateDecimalTypeUsage (primitiveType As PrimitiveType) As TypeUsage

Parameters

primitiveType
PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

Returns

A TypeUsage object describing a decimal type with unbounded precision and scale facet values.

Applies to

CreateDecimalTypeUsage(PrimitiveType, Byte, Byte)

Creates a TypeUsage object to describe a decimal type by using the specified facet values.

public:
 static System::Data::Metadata::Edm::TypeUsage ^ CreateDecimalTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, System::Byte precision, System::Byte scale);
public static System.Data.Metadata.Edm.TypeUsage CreateDecimalTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, byte precision, byte scale);
static member CreateDecimalTypeUsage : System.Data.Metadata.Edm.PrimitiveType * byte * byte -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateDecimalTypeUsage (primitiveType As PrimitiveType, precision As Byte, scale As Byte) As TypeUsage

Parameters

primitiveType
PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

precision
Byte

The precision of the decimal type as type Byte.

scale
Byte

The scale of the decimal type as type Byte.

Returns

A TypeUsage object describing a decimal type by using the specified facet values.

Applies to