Share via


TypeUsage.CreateStringTypeUsage Method

Definition

Overloads

CreateStringTypeUsage(PrimitiveType, Boolean, Boolean)

Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength.

CreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32)

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

CreateStringTypeUsage(PrimitiveType, Boolean, Boolean)

Creates a TypeUsage object to describe a string type by using the specified facet values and unbounded MaxLength.

public static System.Data.Entity.Core.Metadata.Edm.TypeUsage CreateStringTypeUsage (System.Data.Entity.Core.Metadata.Edm.PrimitiveType primitiveType, bool isUnicode, bool isFixedLength);
static member CreateStringTypeUsage : System.Data.Entity.Core.Metadata.Edm.PrimitiveType * bool * bool -> System.Data.Entity.Core.Metadata.Edm.TypeUsage

Parameters

primitiveType
PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isUnicode
Boolean

true to set the character-encoding standard of the string type to Unicode; otherwise, false.

isFixedLength
Boolean

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

Returns

A TypeUsage object describing a string type by using the specified facet values and unbounded MaxLength.

Applies to

CreateStringTypeUsage(PrimitiveType, Boolean, Boolean, Int32)

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

public static System.Data.Entity.Core.Metadata.Edm.TypeUsage CreateStringTypeUsage (System.Data.Entity.Core.Metadata.Edm.PrimitiveType primitiveType, bool isUnicode, bool isFixedLength, int maxLength);
static member CreateStringTypeUsage : System.Data.Entity.Core.Metadata.Edm.PrimitiveType * bool * bool * int -> System.Data.Entity.Core.Metadata.Edm.TypeUsage

Parameters

primitiveType
PrimitiveType

A PrimitiveType for which the TypeUsage object is created.

isUnicode
Boolean

true to set the character-encoding standard of the string type to Unicode; otherwise, false.

isFixedLength
Boolean

true to set the character-encoding standard of the string type to Unicode; otherwise, false.

maxLength
Int32

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

Returns

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

Applies to