Click or drag to resize
ServiceContext Constructor (String, String, IntuitServicesType, IRequestValidator)
Initializes a new instance of the ServiceContext class.

Namespace:  Intuit.Ipp.Core
Assembly:  Intuit.Ipp.Core (in Intuit.Ipp.Core.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
C#
public ServiceContext(
	string appToken,
	string realmId,
	IntuitServicesType serviceType,
	IRequestValidator requestValidator = null
)

Parameters

appToken
Type: SystemString
Application Token.
realmId
Type: SystemString
The realm id.
serviceType
Type: Intuit.Ipp.CoreIntuitServicesType
Service Type - QBO.
requestValidator (Optional)
Type: Intuit.Ipp.SecurityIRequestValidator
The request validate.

Return Value

Type: 
Returns ServiceContext object.
Exceptions
ExceptionCondition
IdsExceptionIf arguments are null or empty.
InvalidRealmExceptionIf realm id is invalid.
InvalidTokenExceptionIf the token is invalid.
See Also