Deli z drugimi prek


OrganizationServiceProxy.Retrieve Method (String, Guid, ColumnSet)

 

Applies To: Dynamics CRM 2015

Retrieves a record.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

public Entity Retrieve(
    string entityName,
    Guid id,
    ColumnSet columnSet
)
public:
virtual Entity^ Retrieve(
    String^ entityName,
    Guid id,
    ColumnSet^ columnSet
) sealed
abstract Retrieve : 
        entityName:string *
        id:Guid *
        columnSet:ColumnSet -> Entity
override Retrieve : 
        entityName:string *
        id:Guid *
        columnSet:ColumnSet -> Entity
Public Function Retrieve (
    entityName As String,
    id As Guid,
    columnSet As ColumnSet
) As Entity

Parameters

  • entityName
    Type: System.String

    Type: String. The logical name of the entity specified in the entityId parameter.

  • id
    Type: System.Guid

    Type: Guid. The ID of the record you want to retrieve.

Return Value

Type: Microsoft.Xrm.Sdk.Entity

Type: Entity.
The requested entity.

Implements

IOrganizationService.Retrieve(String, Guid, ColumnSet)

Remarks

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

For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.

See Also

OrganizationServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace
Troubleshooting and error handling
Use the IOrganizationService web service to read and write data or metadata

Return to top

© 2016 Microsoft. All rights reserved. Copyright