Solution.WithProjectDocumentsOrder Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new solution instance with the project documents in the order by the specified document ids. The specified document ids must be the same as what is already in the project; no adding or removing is allowed.
public Microsoft.CodeAnalysis.Solution WithProjectDocumentsOrder (Microsoft.CodeAnalysis.ProjectId projectId, System.Collections.Immutable.ImmutableList<Microsoft.CodeAnalysis.DocumentId> documentIds);
member this.WithProjectDocumentsOrder : Microsoft.CodeAnalysis.ProjectId * System.Collections.Immutable.ImmutableList<Microsoft.CodeAnalysis.DocumentId> -> Microsoft.CodeAnalysis.Solution
Public Function WithProjectDocumentsOrder (projectId As ProjectId, documentIds As ImmutableList(Of DocumentId)) As Solution
Parameters
- projectId
- ProjectId
- documentIds
- ImmutableList<DocumentId>
Returns
Exceptions
documentIds
is null
.
The number of documents specified in documentIds
is not equal to the number of documents in project projectId
.
Document specified in documentIds
does not exist in project projectId
.