แชร์ผ่าน


OrganizationResponse Class

Definition

Contains the response from a request and the base class for all organization responses.

public ref class OrganizationResponse : System::Runtime::Serialization::IExtensibleDataObject
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA9881:ClassesShouldBeSealed", Justification="This class need to be instantiated by clients and be able to derive from it.")]
[System.Runtime.Serialization.DataContract(Name="OrganizationResponse", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.OrganizationResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateMultipleResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateMultipleResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertMultipleResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ReactivateEntityKeyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencedResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencingResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanManyToManyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAttributeResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateManyToManyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOneToManyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOptionSetResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityKeyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteAttributeResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionValueResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteRelationshipResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionSetResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityKeyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidManyToManyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencedEntitiesResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencingEntitiesResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertOptionValueResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertStatusValueResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.OrderOptionResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllEntitiesResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllOptionSetsResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllManagedPropertiesResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAttributeResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityChangesResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveRelationshipResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveTimestampResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveOptionSetResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveManagedPropertyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityKeyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateAttributeResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateEntityResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionValueResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateStateValueResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateRelationshipResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionSetResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.AssociateResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DisassociateResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.IsDataEncryptionActiveResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveDataEncryptionKeyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.SetDataEncryptionKeyResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMetadataChangesResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteAsyncResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteMultipleResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMultipleResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAsyncJobToRevokeInheritedAccessResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteTransactionResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ConvertDateAndTimeBehaviorResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertResponse))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateCustomerRelationshipsResponse))]
public class OrganizationResponse : System.Runtime.Serialization.IExtensibleDataObject
[<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA9881:ClassesShouldBeSealed", Justification="This class need to be instantiated by clients and be able to derive from it.")>]
[<System.Runtime.Serialization.DataContract(Name="OrganizationResponse", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.OrganizationResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateMultipleResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateMultipleResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertMultipleResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ReactivateEntityKeyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencedResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanBeReferencingResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CanManyToManyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAttributeResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateManyToManyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOneToManyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateOptionSetResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateEntityKeyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteAttributeResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionValueResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteRelationshipResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteOptionSetResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteEntityKeyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidManyToManyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencedEntitiesResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.GetValidReferencingEntitiesResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertOptionValueResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.InsertStatusValueResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.OrderOptionResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllEntitiesResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllOptionSetsResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAllManagedPropertiesResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveAttributeResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityChangesResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveRelationshipResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveTimestampResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveOptionSetResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveManagedPropertyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveEntityKeyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateAttributeResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateEntityResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionValueResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateStateValueResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateRelationshipResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateOptionSetResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.AssociateResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DisassociateResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.IsDataEncryptionActiveResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveDataEncryptionKeyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.SetDataEncryptionKeyResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMetadataChangesResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteAsyncResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteMultipleResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveMultipleResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateAsyncJobToRevokeInheritedAccessResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.DeleteResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.RetrieveResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpdateResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ExecuteTransactionResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.ConvertDateAndTimeBehaviorResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.UpsertResponse))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.Xrm.Sdk.Messages.CreateCustomerRelationshipsResponse))>]
type OrganizationResponse = class
    interface IExtensibleDataObject
Public Class OrganizationResponse
Implements IExtensibleDataObject
Inheritance
OrganizationResponse
Derived
Attributes
Implements

Remarks

This is the base class for all organization Web service responses. An instance of a response class is returned from the Execute(OrganizationRequest) method.

Some messages do not have a return value. In those classes the Results collection will be empty.

Constructors

OrganizationResponse()

Initializes a new instance of the OrganizationResponse class.

Properties

ExtensionData

Gets or sets the structure that contains extra data.

Item[String]

Gets an indexer for the Results collection.

ResponseName

Gets or sets the name of the response.

Results

Gets the results of the request that was performed.

Applies to

See also