TypeUsage.CreateStringTypeUsage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for