BeginImportOrganizationRequest クラス

適用対象: CRM 2015 on-prem, CRM Online

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

名前空間: Microsoft.Xrm.Sdk.Deployment
アセンブリ: Microsoft.Xrm.Sdk.Deployment (Microsoft.Xrm.Sdk.Deployment.dll に含まれる)

構文

'宣言
<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

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

備考

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.

継承階層

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

スレッド セーフ

この種類のパブリックな静的 (Visual Basic では Shared) メンバーはスレッド セーフです。インスタンス メンバーがスレッド セーフであることは保証されません。

プラットフォーム

開発プラットフォーム

Windows Vista、Windows Server 2003、および

対象プラットフォーム

Windows 98、Windows 2000、Windows 2000 Server、Windows CE、Windows Server 2008、Windows 98 Second Edition、Pocket PC、スマート フォン、Windows Server 2003、Windows XP Professional、Windows Vista、Windows XP

Change History

関連項目

参照

BeginImportOrganizationRequest のメンバー
Microsoft.Xrm.Sdk.Deployment 名前空間
BeginImportOrganizationResponse

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