TypeUsage.CreateStringTypeUsage Method

Definition

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

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::Metadata::Edm::TypeUsage ^ CreateStringTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, bool isUnicode, bool isFixedLength);
public static System.Data.Metadata.Edm.TypeUsage CreateStringTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, bool isUnicode, bool isFixedLength);
static member CreateStringTypeUsage : System.Data.Metadata.Edm.PrimitiveType * bool * bool -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateStringTypeUsage (primitiveType As PrimitiveType, isUnicode As Boolean, isFixedLength As Boolean) As 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::Metadata::Edm::TypeUsage ^ CreateStringTypeUsage(System::Data::Metadata::Edm::PrimitiveType ^ primitiveType, bool isUnicode, bool isFixedLength, int maxLength);
public static System.Data.Metadata.Edm.TypeUsage CreateStringTypeUsage (System.Data.Metadata.Edm.PrimitiveType primitiveType, bool isUnicode, bool isFixedLength, int maxLength);
static member CreateStringTypeUsage : System.Data.Metadata.Edm.PrimitiveType * bool * bool * int -> System.Data.Metadata.Edm.TypeUsage
Public Shared Function CreateStringTypeUsage (primitiveType As PrimitiveType, isUnicode As Boolean, isFixedLength As Boolean, maxLength As Integer) As 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