SqlParameter.LocaleId Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the locale identifier that determines conventions and language for a particular region.

Namespace: System.Data.SqlClient
Assembly: System.Data (in system.data.dll)

public int LocaleId { get; set; 
/** @property */
public int get_LocaleId ()

/** @property */
public void set_LocaleId (int value)

public function get LocaleId () : int

public function set LocaleId (value : int)

Property Value

Returns the locale identifier associated with the parameter.

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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0