CrmServiceClient.StageSolution(String, MemoryStream) Method

Definition

Stages a solution.

public Microsoft.Xrm.Sdk.StageSolutionResults StageSolution (string solutionPath, System.IO.MemoryStream solutionStream = default);
member this.StageSolution : string * System.IO.MemoryStream -> Microsoft.Xrm.Sdk.StageSolutionResults
Public Function StageSolution (solutionPath As String, Optional solutionStream As MemoryStream = Nothing) As StageSolutionResults

Parameters

solutionPath
String

Path of the solution file to stage.

solutionStream
MemoryStream

An instantiated IO stream of the solution file.

Returns

Results of staging the solution.

Remarks

Secify either the solution path or IO stream in the call. The staging process imports the solution as a "holding" solution where the administrator can decide when to make the staged solution available to users, or to perform an upgrade (in the case of a solution upgrade) in the target environment. Part of the staging process is validation of the staged solution.

Applies to