SqlParameter.LocaleId Property
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.
Gets or sets the locale identifier that determines conventions and language for a particular region.
public:
property int LocaleId { int get(); void set(int value); };
public int LocaleId { get; set; }
[System.ComponentModel.Browsable(false)]
public int LocaleId { get; set; }
member this.LocaleId : int with get, set
[<System.ComponentModel.Browsable(false)>]
member this.LocaleId : int with get, set
Public Property LocaleId As Integer
Property Value
The locale identifier associated with the parameter.
- Attributes
Remarks
The locale identifies conventions and language for a particular geographical region. The codepage used to encode a specific string (the character set) is based on the locale used by that string or the environment that produced it. This property sets (for input parameters) or gets (for output parameters) the locale to be attached to a string when exchanging data with the server. This property is typically used together with the CompareInfo property.
static void CreateSqlParameterLocaleId(){
SqlParameter parameter = new SqlParameter("pName", SqlDbType.VarChar);
parameter.LocaleId = 1033; // English - United States
}