Partager via


Méthode OrganizationServiceProxy.Create

S'applique à: CRM 2015 on-prem, CRM Online

Creates a record.

Espace de noms: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

'Déclaration
Public Function Create ( _
    entity As Entity _
) As Guid
public Guid Create (
    Entity entity
)

Paramètres

  • entity
    Type: Entity. An entity instance that contains the properties to set in the newly created record.

Valeur renvoyée

Type: GUID
The ID of the created entity.

Remarques

The core implementation of the Create method. For more information, see IOrganizationService.Create.

For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle Exceptions in Your Code.

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

Classe OrganizationServiceProxy
Membres OrganizationServiceProxy
Espace de noms Microsoft.Xrm.Sdk.Client

Autres ressources

Troubleshooting and Error Handling
Read and Write Data and Metadata using the IOrganizationService Web Service

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