BeginImportOrganizationRequest Kelas

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

Ruang nama: Microsoft.Xrm.Sdk.Deployment
Perhimpunan: Microsoft.Xrm.Sdk.Deployment (dalam Microsoft.Xrm.Sdk.Deployment.dll)

[DataContractAttribute(Name="BeginImportOrganizationRequest", Namespace="")] 
[GeneratedCodeAttribute("System.Runtime.Serialization", "")] 
public class BeginImportOrganizationRequest : DeferredOperationRequest

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


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 PowerShell.

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.

Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

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,Pelayan Windows 2000,Windows CE,Windows Server 2008,Windows 98 Edisi Kedua,Pocket PC,Telefon Pintar,Windows Server 2003,Windows XP Professional,Windows Server 2008,Windows Server 2012,Windows 7,Windows 8,Windows 8.1

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