Classe BeginImportOrganizationRequest

Si applica a: CRM 2015 on-prem, CRM Online

Contains the data that is needed to begin the asynchronous operation to import an organization.

Spazio dei nomi: Microsoft.Xrm.Sdk.Deployment
Assembly: Microsoft.Xrm.Sdk.Deployment (in Microsoft.Xrm.Sdk.Deployment.dll)

Sintassi

'Dichiarazione
<DataContractAttribute(Name:="BeginImportOrganizationRequest", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")> _
<GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")> _
<DebuggerStepThroughAttribute> _
Public Class BeginImportOrganizationRequest
    Inherits DeferredOperationRequest
[DataContractAttribute(Name="BeginImportOrganizationRequest", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")] 
[GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 
[DebuggerStepThroughAttribute] 
public class BeginImportOrganizationRequest : DeferredOperationRequest

Esempio

BeginImportOrganizationRequest request = new BeginImportOrganizationRequest();
request.DatabaseName = "MyOrgName" + "_MSCRM";
request.SqlServerName = Config.SetupSqlServer;
request.SrsUrl = "http://" + Config.SetupSqlServer + "/reportserver";

Guid operationId = ((BeginImportOrganizationResponse)_deploymentService.Execute(request)).OperationId;

DeferredOperationStatus importOrgOperationStatus = WaitForAsyncOperationAndReturnStatus(operationId);

If (importOrgOperationStatus.State == DeferredOperationState.Completed)
   //Do something

Note

Usage

Pass an instance of this class to the Execute method, which returns an instance of BeginImportOrganizationResponse.

Notes for Callers

You can also use the Import-CrmOrganizationWindows PowerShell command. For more information, see Administer the deployment using Windows PowerShel.

You can use the Get-CrmOperationStatusWindows PowerShell command to check the status of this asynchronous request. Or, you can use the RetrieveRequest message using the OperationId property to set the InstanceTag property.

Gerarchia ereditarietà

System.Object
   Microsoft.Xrm.Sdk.Deployment.DeploymentServiceRequest
     Microsoft.Xrm.Sdk.Deployment.DeferredOperationRequest
      Microsoft.Xrm.Sdk.Deployment.BeginImportOrganizationRequest

Thread Safety

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.

Piattaforme

Piattaforme di sviluppo

Windows Vista, Windows Server 2003 e

Piattaforme di destinazione

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 Vista,Windows XP

Change History

Vedere anche

Riferimento

Membri BeginImportOrganizationRequest
Spazio dei nomi Microsoft.Xrm.Sdk.Deployment
BeginImportOrganizationResponse

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.