Méthode IOrganizationServiceFactory.CreateOrganizationService
S'applique à: CRM 2015 on-prem, CRM Online
Returns an IOrganizationService instance for the organization that the specified user is a member of.
Espace de noms: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)
Syntaxe
'Déclaration
Function CreateOrganizationService ( _
userId As Nullable(Of Guid) _
) As IOrganizationService
IOrganizationService CreateOrganizationService (
Nullable<Guid> userId
)
Paramètres
- userId
Type: Autorise la valeur Null<GUID>. Specifies the system user that calls to the service are made for. A null value indicates the SYSTEM user. When called in a plug-in, a Guid.Empty value indicates the same user as IPluginExecutionContext. UserId. When called in a custom workflow activity, a Guid.Empty value indicates the same user as IWorkflowExecutionContext.UserId. Any other value indicates a specific system user.
Valeur renvoyée
Type: IOrganizationService
An organization service factory object.
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows Vista,Windows XP
Voir aussi
Référence
Interface de IOrganizationServiceFactory
Membres IOrganizationServiceFactory
Espace de noms Microsoft.Xrm.Sdk
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.