Share via


DatastoreManager.LocaleId Property

Gets or sets the locale identifier (LCID), an integer that identifies the language, country, and/or region.

Namespace:  Microsoft.SmartDevice.Connectivity
Assembly:  Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)

Syntax

'Declaration
Public Property LocaleId As Integer
'Usage
Dim instance As DatastoreManager 
Dim value As Integer 

value = instance.LocaleId

instance.LocaleId = value
public int LocaleId { get; set; }
public:
property int LocaleId {
    int get ();
    void set (int value);
}
public function get LocaleId () : int 
public function set LocaleId (value : int)

Property Value

Type: System.Int32
The locale identifier (LCID).

Exceptions

Exception Condition
DatastoreException

COM exceptions are caught and are thrown again as DatastoreException objects.

ArgumentOutOfRangeException

Thrown if assigned to a value less than zero.

Remarks

For an example, 1033 is the LCID for English, United States and 1031 is the LCID for German, Germany. For a complete list, see List of Locale ID (LCID) Values as Assigned by Microsoft.

The locale ID must match the locale of your Visual Studio installation.

.NET Framework Security

See Also

Reference

DatastoreManager Class

DatastoreManager Members

Microsoft.SmartDevice.Connectivity Namespace