UpdateRequest-klasse
Contains the data that is needed to update a deployment record.
Naamruimte: Microsoft.Xrm.Sdk.Deployment
Assembly: Microsoft.Xrm.Sdk.Deployment (in Microsoft.Xrm.Sdk.Deployment.dll)
Syntaxis
'Declaratie
<DebuggerStepThroughAttribute> _
<DataContractAttribute(Name:="UpdateRequest", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")> _
<GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")> _
Public Class UpdateRequest
Inherits DeploymentServiceRequest
[DebuggerStepThroughAttribute]
[DataContractAttribute(Name="UpdateRequest", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
[GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
public class UpdateRequest : DeploymentServiceRequest
Voorbeeld
The following code shows how to disable an organization.
using (DeploymentServiceClient client = new DeploymentServiceClient("CustomBinding_IDeploymentService"))
{
EntityInstanceId id = new EntityInstanceId
{
Name = "AlpineSkiHouse"
};
Organization organization = (Organization)client.Retrieve(DeploymentEntityType.Organization, id);
organization.State = OrganizationState.Disabled;
client.Update(organization);
client.Close();
}
The following code shows how to enable an organization.
using (DeploymentServiceClient client = new DeploymentServiceClient("CustomBinding_IDeploymentService"))
{
EntityInstanceId id = new EntityInstanceId
{
Name = "AlpineSkiHouse"
};
Organization organization = (Organization)client.Retrieve(DeploymentEntityType.Organization, id);
organization.State = OrganizationState.Enabled;
client.Update(organization);
client.Close();
}
Opmerkingen
Pass an instance of this class to the Execute method, which returns an instance of UpdateResponse.
You can also use the corresponding Windows PowerShell command for the deployment entity you want to update. For example, Set-CrmProductKey or Set-CrmSetting. For more information, see Administer the deployment using Windows PowerShell.
Note that this is for the Deployment Web service. To update organization data records use UpdateRequest.
Overnamehiërarchie
System.Object
Microsoft.Xrm.Sdk.Deployment.DeploymentServiceRequest
Microsoft.Xrm.Sdk.Deployment.UpdateRequest
Thread-veiligheid
Alle openbare statische (Shared in Visual Basic) leden van dit type zijn thread-veilig. Exemplaarleden zijn niet gegarandeerd thread-veilig.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Second Edition,Pocket-pc,Smartphone,Windows Server 2003,Windows XP Professional,Windows Server 2008,Windows Server 2012,Windows 7,Windows 8,Windows 8.1
Change History
Zie ook
Verwijzing
UpdateRequest-leden
Microsoft.Xrm.Sdk.Deployment-naamruimte
UpdateResponse
Overige resources
Use Deployment Entities and Deployment Configuration Settings
Administer the deployment using Windows PowerShell
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.