Compartir por


Clase de BeginCreateOrganizationRequest

Se aplica a: CRM 2015 on-prem, CRM Online

Contains the data that is needed to initiate the asynchronous operation to create an organization.

Espacio de nombres: Microsoft.Xrm.Sdk.Deployment
Ensamblado: Microsoft.Xrm.Sdk.Deployment (en Microsoft.Xrm.Sdk.Deployment.dll)

Sintaxis

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

Ejemplo

Guid operationId = Guid.Empty;
            // instantiating the DeploymentServiceClient in a using statement ensures that the client
            // communication channel is closed and the object is disposed when falling out of scope.

            // CustomBinding_IDeploymenService is the name of the configuration setting for the CustomBinding
            using (DeploymentServiceClient client = new DeploymentServiceClient("CustomBinding_IDeploymentService"))
            {
                // Set properties for the new organization
                Organization organization = new Organization
                {
                    BaseCurrencyCode = "USD",
                    BaseCurrencyName = "US Dollar",
                    BaseCurrencyPrecision = 2,
                    BaseCurrencySymbol = "$",
                    BaseLanguageCode = 1033,
                    FriendlyName = "Alpine Ski House",
                    UniqueName = "AlpineSkiHouse",
                    SqlCollation = "Latin1_General_CI_AI",
                    SqlServerName = "CRM01",
                    SrsUrl = "http://CRM01/ReportServer",
                    SqmIsEnabled = false
                };

                // Create a request for the deployment service
                BeginCreateOrganizationRequest request = new BeginCreateOrganizationRequest();
                request.Organization = organization;

                // Execute the request
                BeginCreateOrganizationResponse response = (BeginCreateOrganizationResponse)client.Execute(request);

                // The operation is asynchronous, so the response object contains a unique identifier
                // for the operation
                operationId = response.OperationId;
             
            }












Comentarios

Usage

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

Notes for Callers

You can also use the New-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.

Jerarquía heredada

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

Seguridad de hilo

Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para el hilo. No se garantiza que los miembros de instancia sean seguros para el hilo.

Plataformas

Plataformas de desarrollo

Windows Vista, Windows Server 2003 y

Plataformas de destino

Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Second Edition,Pocket PC,Teléfono inteligente,Windows Server 2003,Windows XP Professional,Windows Vista,Windows XP

Change History

Vea también

Referencia

Miembros de BeginCreateOrganizationRequest
Espacio de nombres de Microsoft.Xrm.Sdk.Deployment
BeginCreateOrganizationResponse

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