Redigera

Dela via


TypeUsage.CreateBinaryTypeUsage Method

Definition

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

Overloads

CreateBinaryTypeUsage(PrimitiveType, Boolean)

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

CreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)

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

CreateBinaryTypeUsage(PrimitiveType, Boolean)

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

public:
 static System::Data::Metadata::Edm::TypeUsage ^ CreateBinaryTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, bool isFixedLength);
public static System.Data.Metadata.Edm.TypeUsage CreateBinaryTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, bool isFixedLength);
static member CreateBinaryTypeUsage : System.Data.Metadata.Edm.PrimitiveType * bool -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateBinaryTypeUsage (primitiveType As PrimitiveType, isFixedLength As Boolean) As TypeUsage

Parameters

primitiveType
PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isFixedLength
Boolean

true to set the length of the binary type to fixed; otherwise, false.

Returns

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

Applies to

CreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)

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

public:
 static System::Data::Metadata::Edm::TypeUsage ^ CreateBinaryTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, bool isFixedLength, int maxLength);
public static System.Data.Metadata.Edm.TypeUsage CreateBinaryTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, bool isFixedLength, int maxLength);
static member CreateBinaryTypeUsage : System.Data.Metadata.Edm.PrimitiveType * bool * int -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateBinaryTypeUsage (primitiveType As PrimitiveType, isFixedLength As Boolean, maxLength As Integer) As TypeUsage

Parameters

primitiveType
PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isFixedLength
Boolean

true to set the length of the binary type to fixed; otherwise, false.

maxLength
Int32

The maximum length of the binary type.

Returns

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

Applies to