TypeUsage.CreateBinaryTypeUsage Method (PrimitiveType, Boolean, Int32)

 

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

Namespace:   System.Data.Metadata.Edm
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static TypeUsage CreateBinaryTypeUsage(
	PrimitiveType primitiveType,
	bool isFixedLength,
	int maxLength
)

Parameters

primitiveType
Type: System.Data.Metadata.Edm.PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isFixedLength
Type: System.Boolean

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

maxLength
Type: System.Int32

The maximum length of the binary type.

Return Value

Type: System.Data.Metadata.Edm.TypeUsage

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

For more information about the binary types, see Binary (EDM).

.NET Framework
Available since 3.5
Return to top
Show: