Del via


IOrganizationServiceFactory.CreateOrganizationService-metode

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

Navneområde: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (i Microsoft.Xrm.Sdk.dll)

Syntaks

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

Parametre

  • userId
    Type: Kan være nul<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.

Returværdi

Type: IOrganizationService
An organization service factory object.

Sikkerhed i tråd

Alle offentlige statiske (Shared i Visual Basic) medlemmer af denne type er trådsikret. Alle medlemmer af forekomsten er ikke garanteret trådsikkerhed.

Platforme

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Se også

Reference

IOrganizationServiceFactory-brugergrænseflade
IOrganizationServiceFactory-medlemmer
Microsoft.Xrm.Sdk-navneområde

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