OrganizationServiceContextExtensions.AddSolutionComponent Method (OrganizationServiceContext, Guid, Int32, String, Boolean)
Applies To: Dynamics CRM 2013
Adds a solution component to an unmanaged solution. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Guid AddSolutionComponent(
this OrganizationServiceContext context,
Guid componentId,
int componentType,
string solutionUniqueName,
bool addRequiredComponents
)
public:
[ExtensionAttribute]
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
<ExtensionAttribute>
Public Shared Function AddSolutionComponent (
context As OrganizationServiceContext,
componentId As Guid,
componentType As Integer,
solutionUniqueName As String,
addRequiredComponents As Boolean
) As Guid
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
componentId
Type: System.GuidThe ID of the solution component.
componentType
Type: System.Int32The value that represents the solution component that you are adding.
solutionUniqueName
Type: System.StringThe unique name of the solution for which you want to add the solution component.
addRequiredComponents
Type: System.BooleanIndicates 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.
Remarks
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 2013
Return to top