Metodo IOrganizationServiceFactory.CreateOrganizationService

Si applica a: CRM 2015 on-prem, CRM Online

Returns an IOrganizationService instance for the organization that the specified user is a member of.

Spazio dei nomi: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Sintassi

'Dichiarazione
Function CreateOrganizationService ( _
    userId As Nullable(Of Guid) _
) As IOrganizationService
IOrganizationService CreateOrganizationService (
    Nullable<Guid> userId
)

Parametri

  • userId
    Type: Nullable<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.

Valore restituito

Type: IOrganizationService
An organization service factory object.

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows Server 2003 e

Piattaforme di destinazione

Windows Vista,Windows XP

Vedere anche

Riferimento

Interfaccia IOrganizationServiceFactory
Membri IOrganizationServiceFactory
Spazio dei nomi Microsoft.Xrm.Sdk

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.