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.

C#
public static System.Data.Metadata.Edm.TypeUsage CreateBinaryTypeUsage(System.Data.Metadata.Edm.PrimitiveType primitiveType, bool isFixedLength);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CreateBinaryTypeUsage(PrimitiveType, Boolean, Int32)

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

C#
public static System.Data.Metadata.Edm.TypeUsage CreateBinaryTypeUsage(System.Data.Metadata.Edm.PrimitiveType primitiveType, bool isFixedLength, int maxLength);

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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1