OrganizationServiceContextExtensions.AddSolutionComponent Method (OrganizationServiceContext, Guid, Int32, String, Boolean)


Applies To: Dynamics CRM 2015

Adds a solution component to an unmanaged solution. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)


public static Guid AddSolutionComponent(
    this OrganizationServiceContext context,
    Guid componentId,
    int componentType,
    string solutionUniqueName,
    bool addRequiredComponents
static Guid AddSolutionComponent(
    OrganizationServiceContext^ context,
    Guid componentId,
    int componentType,
    String^ solutionUniqueName,
    bool addRequiredComponents
static member AddSolutionComponent : 
        context:OrganizationServiceContext *
        componentId:Guid *
        componentType:int *
        solutionUniqueName:string *
        addRequiredComponents:bool -> Guid
Public Shared Function AddSolutionComponent (
    context As OrganizationServiceContext,
    componentId As Guid,
    componentType As Integer,
    solutionUniqueName As String,
    addRequiredComponents As Boolean
) As Guid


  • componentId
    Type: System.Guid

    The ID of the solution component.

  • componentType
    Type: System.Int32

    The value that represents the solution component that you are adding.

  • solutionUniqueName
    Type: System.String

    The unique name of the solution for which you want to add the solution component.

  • addRequiredComponents
    Type: System.Boolean

    Indicates whether the solution components that are required by the solution component that you are adding are also added to the unmanaged solution.

Return Value

Type: System.Guid

Returns a Guid, the ID of the new solution component record.


This is a method wrapper for the AddSolutionComponentRequest and AddSolutionComponentResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright