TypeUsage.CreateDefaultTypeUsage(EdmType) Method

Definition

Creates a TypeUsage object with the specified conceptual model type.

public:
 static System::Data::Metadata::Edm::TypeUsage ^ CreateDefaultTypeUsage(System::Data::Metadata::Edm::EdmType ^ edmType);
public static System.Data.Metadata.Edm.TypeUsage CreateDefaultTypeUsage (System.Data.Metadata.Edm.EdmType edmType);
static member CreateDefaultTypeUsage : System.Data.Metadata.Edm.EdmType -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateDefaultTypeUsage (edmType As EdmType) As TypeUsage

Parameters

edmType
EdmType

A EdmType for which the TypeUsage object is created.

Returns

A TypeUsage object with the default facet values for the specified EdmType.

Remarks

If the EdmType is a primitive type, such as String, Decimal, Binary or DateTime, this method invokes one of the corresponding methods declared in the TypeUsage class. Otherwise, it creates a TypeUsage object with the specified EdmType directly.

Applies to