Поделиться через


AddDeploymentAdministratorRequest Class

 

Applies To: Dynamics CRM 2015

Contains the data that is needed to add a deployment administrator. The user must already exist in Active Directory.

Namespace:   Microsoft.Xrm.Sdk.Deployment
Assembly:  Microsoft.Xrm.Sdk.Deployment (in Microsoft.Xrm.Sdk.Deployment.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Deployment.DeploymentServiceRequest
    Microsoft.Xrm.Sdk.Deployment.AddDeploymentAdministratorRequest

Syntax

[DataContractAttribute(Name = "AddDeploymentAdministratorRequest", 
    Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
public class AddDeploymentAdministratorRequest : DeploymentServiceRequest
[DataContractAttribute(Name = "AddDeploymentAdministratorRequest", 
    Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
public ref class AddDeploymentAdministratorRequest : DeploymentServiceRequest
[<DataContractAttribute(Name = "AddDeploymentAdministratorRequest",
    Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")>]
type AddDeploymentAdministratorRequest = 
    class
        inherit DeploymentServiceRequest
    end
<DataContractAttribute(Name := "AddDeploymentAdministratorRequest",
    Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts/Deployment")>
Public Class AddDeploymentAdministratorRequest
    Inherits DeploymentServiceRequest

Constructors

Name Description
System_CAPS_pubmethod AddDeploymentAdministratorRequest()

Initializes a new instance of the AddDeploymentAdministratorRequest class.

Properties

Name Description
System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.(Inherited from DeploymentServiceRequest.)

System_CAPS_pubproperty Name

Gets or sets the name of the deployment administrator to be added. Required.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

Usage

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

Notes for Callers

You can also use the New-CrmDeploymentAdministrator Windows PowerShell command. For more information, see Administer the deployment using Windows PowerShell.

Examples

// The user must already exist in AD.
AddDeploymentAdministratorRequest request = new AddDeploymentAdministratorRequest();
request.Name = Config.AdminDomain + "\\" + userName;

_deploymentService.Execute(request);

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

AddDeploymentAdministratorResponse
Microsoft.Xrm.Sdk.Deployment Namespace
Deployment web service messages
New-CrmDeploymentAdministrator

Return to top

© 2016 Microsoft. All rights reserved. Copyright