Share via


CommonServiceSoap.UserInfoHeaderValue Property

The context-related information (UserInfoHeader object) that defines the locale, language, and unit of measurement in which results are returned from the CommonServiceSoap methods.

Public Dim UserInfoHeaderValue As
  [Namespace].UserInfoHeader
    Member of [Namespace].CommonServiceSoap
[C#]
public [Namespace].UserInfoHeader
  UserInfoHeaderValue
    Member of [Namespace].CommonServiceSoap

Example

 
[Visual Basic] 
'This example assumes that the MapPoint Web Service 
'namespace has been imported

'Instantiate the service variable
Dim commonService As New CommonServiceSoap()

'Set the language to Spanish
Dim myUserInfoHeader As New UserInfoHeader()
myUserInfoHeader.Culture = New CultureInfo()
myUserInfoHeader.Culture.Name = "es"
commonService.UserInfoHeaderValue = myUserInfoHeader

 
[C#]
//This example assumes that the MapPoint Web Service 
//namespace has been imported

//Instantiate the service variable
CommonServiceSoap commonService = new CommonServiceSoap();

//Set the language to Spanish
UserInfoHeader myUserInfoHeader  = new UserInfoHeader();
myUserInfoHeader.Culture = new CultureInfo();
myUserInfoHeader.Culture.Name = "es";
commonService.UserInfoHeaderValue = myUserInfoHeader;

 

See Also

CommonServiceSoap Class | UserInfoHeader Class