BeginImportOrganizationRequest 클래스

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")> _
<DebuggerStepThroughAttribute> _
<GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")> _
Public Class BeginImportOrganizationRequest
    Inherits DeferredOperationRequest
[DataContractAttribute(Name="BeginImportOrganizationRequest", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")] 
[DebuggerStepThroughAttribute] 
[GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 
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 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.

상속 계층

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

스레드 보안

이 형식의 공용 정적(Visual Basic에서는 Shared) 구성원은 스레드로부터 안전합니다. 인스턴스 구성원은 스레드로부터 안전하지 않을 수 있습니다.

플랫폼

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,스마트 폰,Windows Server 2003,Windows XP Professional,Windows Server 2008,Windows Server 2012,Windows 7,Windows 8,Windows 8.1

Change History

참고 항목

참조

BeginImportOrganizationRequest 구성원
Microsoft.Xrm.Sdk.Deployment 네임스페이스
BeginImportOrganizationResponse

기타 리소스

Import-CrmOrganization
Get-CrmOperationStatus

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