Partager via


OrganizationRequest Class

Definition

Contains the data needed to execute a request and the base class for all organization requests.

public ref class OrganizationRequest : System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Name="OrganizationRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.OrganizationRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateMultipleRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateMultipleRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertMultipleRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ReactivateEntityKeyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencedRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencingRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanManyToManyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAttributeRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateManyToManyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOneToManyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOptionSetRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityKeyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteAttributeRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionValueRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteRelationshipRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionSetRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityKeyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidManyToManyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencedEntitiesRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencingEntitiesRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertOptionValueRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertStatusValueRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.OrderOptionRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllEntitiesRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllOptionSetsRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllManagedPropertiesRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAttributeRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityChangesRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveRelationshipRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveTimestampRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveOptionSetRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveManagedPropertyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityKeyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateAttributeRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateEntityRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionValueRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateStateValueRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateRelationshipRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionSetRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.AssociateRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DisassociateRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.IsDataEncryptionActiveRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveDataEncryptionKeyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.SetDataEncryptionKeyRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMetadataChangesRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteAsyncRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteMultipleRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMultipleRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAsyncJobToRevokeInheritedAccessRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteTransactionRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ConvertDateAndTimeBehaviorRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertRequest))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateCustomerRelationshipsRequest))]
public class OrganizationRequest : System.Runtime.Serialization.IExtensibleDataObject
[<System.Runtime.Serialization.DataContract(Name="OrganizationRequest", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.OrganizationRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateMultipleRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateMultipleRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertMultipleRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ReactivateEntityKeyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencedRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencingRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanManyToManyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAttributeRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateManyToManyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOneToManyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOptionSetRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityKeyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteAttributeRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionValueRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteRelationshipRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionSetRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityKeyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidManyToManyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencedEntitiesRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencingEntitiesRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertOptionValueRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertStatusValueRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.OrderOptionRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllEntitiesRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllOptionSetsRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllManagedPropertiesRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAttributeRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityChangesRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveRelationshipRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveTimestampRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveOptionSetRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveManagedPropertyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityKeyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateAttributeRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateEntityRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionValueRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateStateValueRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateRelationshipRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionSetRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.AssociateRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DisassociateRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.IsDataEncryptionActiveRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveDataEncryptionKeyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.SetDataEncryptionKeyRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMetadataChangesRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteAsyncRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteMultipleRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMultipleRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAsyncJobToRevokeInheritedAccessRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteTransactionRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ConvertDateAndTimeBehaviorRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertRequest))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateCustomerRelationshipsRequest))>]
type OrganizationRequest = class
    interface IExtensibleDataObject
Public Class OrganizationRequest
Implements IExtensibleDataObject
Inheritance
OrganizationRequest
Derived
Attributes
Implements

Remarks

This is the base class for all organization Web service requests. Pass an instance of a request class to the Execute(OrganizationRequest) method.

You can use this class, specifying the parameter collection. However, when you use the derived class, the parameter collection is created for you.

Constructors

OrganizationRequest()

Initializes a new instance of the OrganizationRequest class.

OrganizationRequest(String)

Initializes a new instance of the OrganizationRequest class setting the request name parameter.

Properties

ExtensionData

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

Item[String]

Gets or sets the indexer for the Parameters collection.

Parameters

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

RequestId

Gets or sets the ID of the request. Optional.

RequestName

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

Applies to

See also