Método IOrganizationServiceFactory.CreateOrganizationService
Aplica-se a: CRM 2015 on-prem, CRM Online
Returns an IOrganizationService instance for the organization that the specified user is a member of.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (em Microsoft.Xrm.Sdk.dll)
Sintaxe
'Declaração
Function CreateOrganizationService ( _
userId As Nullable(Of Guid) _
) As IOrganizationService
IOrganizationService CreateOrganizationService (
Nullable<Guid> userId
)
Parâmetros
- userId
Type: Anulável<Guid>. Specifies the system user that calls to the service are made for. A nulo 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.
Valor de Retorno
Type: IOrganizationService
An organization service factory object.
Segurança do Thread
Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.
Plataformas
Plataformas de desenvolvimento
Windows Vista, Windows Server 2003 e
Plataformas de destino
Windows Vista,Windows XP
Consulte também
Referência
Interface IOrganizationServiceFactory
Membros de IOrganizationServiceFactory
Namespace Microsoft.Xrm.Sdk
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.