Споделяне чрез


RetrieveRelationshipRequest.RetrieveAsIfPublished Property

 

Applies To: Dynamics CRM 2015

Gets or sets whether to retrieve the metadata that has not been published. Required.

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

Syntax

public bool RetrieveAsIfPublished { get; set; }
public:
property bool RetrieveAsIfPublished {
    bool get();
    void set(bool value);
}
member RetrieveAsIfPublished : bool with get, set
Public Property RetrieveAsIfPublished As Boolean

Property Value

Type: System.Boolean

Type: Boolean 
true if the unpublished metadata should be retrieved; otherwise, false.

Remarks

If you are creating an entity relationship editor, you will need to retrieve data that has been saved but not published. For other scenarios, you will want to only retrieve published metadata.

  • Set this value to true to include unpublished changes.

  • Set this value to false to include only the currently published changes, ignoring the changes that have not yet been published.

See Also

RetrieveRelationshipRequest Class
Microsoft.Xrm.Sdk.Messages Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright