CultureInfo.Lcid Property
A 32-bit value that identifies the human language preferred by the customer. Integer. Optional if the Name property is used.
Public Dim Lcid As Integer
Member of [Namespace].CultureInfo
[C#]
public System.Int32 Lcid
Member of [Namespace].CultureInfo
Remarks
- Default is 1033 (English—United States).
- If the Lcid property is passed along with the Name property, they must both refer to the same country or region; otherwise, a SOAP fault is returned.
- If the Lcid property is not supported for the DataSource object specified in a call to MapPoint Web Service, a SOAP fault is returned.
- For a table of the valid Lcid property values for each MapPoint Web Service data source, see Supported Languages.
- The collation sequence of all Find results are always based on the 2 letter language code; the region code is never used.
Example
[Visual Basic]
'This example assumes that the service instance
''findService' has already been created and that
'the MapPoint Web Service namespace has been imported
' Set the Find Service language ID to French
Dim myCultureInfo As New CultureInfo()
myCultureInfo.Lcid = 12
Dim myUserInfoFindHeader As New UserInfoFindHeader()
myUserInfoFindHeader.Culture = myCultureInfo
findService.UserInfoFindHeaderValue = myUserInfoFindHeader
[C#]
//This example assumes that the service instance
//'findService' has already been created and that
//the MapPoint Web Service namespace has been imported
// Set the Find Service language ID to French
CultureInfo myCultureInfo = new CultureInfo();
myCultureInfo.Lcid = 12;
UserInfoFindHeader myUserInfoFindHeader = new UserInfoFindHeader();
myUserInfoFindHeader.Culture = myCultureInfo;
findService.UserInfoFindHeaderValue = myUserInfoFindHeader;
See Also
CultureInfo Class | CultureInfo.Name Property | DataSource Class | Supported Languages