Classe DeleteRequest
S'applique à: CRM 2015 on-prem, CRM Online
Contains the data that is needed to delete a deployment record.
Espace de noms: Microsoft.Xrm.Sdk.Deployment
Assembly: Microsoft.Xrm.Sdk.Deployment (dans Microsoft.Xrm.Sdk.Deployment.dll)
Syntaxe
'Déclaration
<GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")> _
<DataContractAttribute(Name:="DeleteRequest", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")> _
<KnownTypeAttribute(GetType(DeleteOrganizationRequest))> _
<DebuggerStepThroughAttribute> _
Public Class DeleteRequest
Inherits DeploymentServiceRequest
[GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
[DataContractAttribute(Name="DeleteRequest", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
[KnownTypeAttribute(typeof(DeleteOrganizationRequest))]
[DebuggerStepThroughAttribute]
public class DeleteRequest : DeploymentServiceRequest
Exemple
The following code shows how to delete an organization.
using (DeploymentServiceClient client = new DeploymentServiceClient("CustomBinding_IDeploymentService"))
{
EntityInstanceId id = new EntityInstanceId
{
Name = "AlpineSkiHouse2"
};
// disable the organization
Organization organization = (Organization)client.Retrieve(DeploymentEntityType.Organization, id);
organization.State = OrganizationState.Disabled;
client.Update(organization);
// delete the organization
DeleteRequest request = new DeleteRequest
{
EntityType = DeploymentEntityType.Organization,
InstanceTag = id
};
DeleteResponse response = (DeleteResponse)client.Execute(request);
client.Close();
}
Remarques
Pass an instance of this class to the Execute method, which returns an instance of DeleteResponse.
Note that this is the Deployment Web Service. To delete organization data records in Microsoft Dynamics CRM, use DeleteRequest.
Hiérarchie d'héritage
System.Object
Microsoft.Xrm.Sdk.Deployment.DeploymentServiceRequest
Microsoft.Xrm.Sdk.Deployment.DeleteRequest
Microsoft.Xrm.Sdk.Deployment.DeleteOrganizationRequest
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Deuxième Édition,Pocket PC,Smart Phone,Windows Server 2003,Windows XP Professionnel,Windows Vista,Windows XP
Change History
Voir aussi
Référence
Membres DeleteRequest
Espace de noms Microsoft.Xrm.Sdk.Deployment
DeleteResponse
Autres ressources
Introduction to the Deployment Web Service
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.