Export (0) Print
Expand All

CultureInfo.Name Property

CultureInfo.Name Property

The culture name from the System.Globalization.CultureInfo class. This property is optional if you use the Lcid property. The default value for the Name property is en-US (English—United States).



Public Name As System.String

[C#]

public System.String Name;
				

Remarks

  • If you use both the Name property and the Lcid property, they must refer to the same country\ region; otherwise, a SOAP fault is returned.

  • If the value of the Name property is not supported for the DataSource object specified in a call to MapPoint Web Service, a SOAP fault is returned.

    For more information about valid values for Name, see Supported Languages.

Example


[Visual Basic]

' Set the Find Service language to French
Dim myCultureInfo As New CultureInfo()
myCultureInfo.Name = "fr"
Dim myUserInfoFindHeader As New UserInfoFindHeader()
myUserInfoFindHeader.Culture = myCultureInfo
findService.UserInfoFindHeaderValue = myUserInfoFindHeader


[C#]

// Set the Find Service language to French
CultureInfo myCultureInfo = new CultureInfo();
myCultureInfo.Name = "fr";
UserInfoFindHeader myUserInfoFindHeader = new UserInfoFindHeader();
myUserInfoFindHeader.Culture = myCultureInfo;
findService.UserInfoFindHeaderValue = myUserInfoFindHeader;



See Also

  CultureInfo Class   |   CultureInfo.Lcid Property   |   DataSource Class   |   Supported Languages  

Show:
© 2014 Microsoft