UserInfoHeader.Context Property
UserInfoHeader.Context Property
Defines the country/region context (CountryRegionContext object) that is associated with a request.
Public Context As CountryRegionContext
[C#]
public CountryRegionContext Context;
Remarks
When using the UserInfoFindHeader class, you can override the Context property, by setting the FindOptions.SearchContext property, which is passed to the FindServiceSoap.FindAddress method.
You cannot override the Context property when using the UserInfoRouteHeader class.
Example
[Visual Basic]
' Set the country context of the find service to Canada
Dim myUserInfoFindHeader As New UserInfoFindHeader()
myUserInfoFindHeader.Context = New CountryRegionContext()
myUserInfoFindHeader.Context.EntityID = 39
findService.UserInfoFindHeaderValue = myUserInfoFindHeader
[C#]
//Set the country context of the find service to Canada
UserInfoFindHeader myUserInfoFindHeader = new UserInfoFindHeader();
myUserInfoFindHeader.Context = new CountryRegionContext();
myUserInfoFindHeader.Context.EntityID = 39;
findService.UserInfoFindHeaderValue = myUserInfoFindHeader;
See Also
UserInfoHeader Class | CountryRegionContext Class | UserInfoRouteHeader Class | RouteServiceSoap Class