CallerImpersonationScope(IOrganizationService, Guid) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the
CallerImpersonationScope
class.
public:
CallerImpersonationScope(Microsoft::Xrm::Sdk::IOrganizationService ^ service, Guid callerId);
public CallerImpersonationScope (Microsoft.Xrm.Sdk.IOrganizationService service, Guid callerId);
new Microsoft.Xrm.Sdk.CallerImpersonationScope : Microsoft.Xrm.Sdk.IOrganizationService * Guid -> Microsoft.Xrm.Sdk.CallerImpersonationScope
Public Sub New (service As IOrganizationService, callerId As Guid)
Parameters
- service
- IOrganizationService
Specifies an organization service object.
- callerId
- Guid
Specifies the ID of the user that owns any data changes made by a call to the service.