Partilhar via


PublishXmlRequest Class

Definition

Contains the data that is needed to publish specified solution components.

public ref class PublishXmlRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class PublishXmlRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type PublishXmlRequest = class
    inherit OrganizationRequest
Public NotInheritable Class PublishXmlRequest
Inherits OrganizationRequest
Inheritance
PublishXmlRequest
Attributes

Examples

The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface instance. For the complete sample, see the link later in this topic. This sample updates a global option set and then publishes just that option set.

Remarks

For the Web API use the PublishXml action.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of PublishXmlResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges listed in PublishXml message privileges.

Notes for Callers

Use this message to publish a specified subset of solution components. See ParameterXml for details about how to specify the solution components to publish.

Constructors

PublishXmlRequest()

Initializes a new instance of the PublishXmlRequest class

Properties

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
ParameterXml

Gets or sets the XML that defines which solution components to publish in this request. Required.

RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)

Applies to

See also