Udostępnij za pośrednictwem


Solution.WithDocumentSourceCodeKind(DocumentId, SourceCodeKind) Method

Definition

Creates a new solution instance with the document specified updated to have the source code kind specified.

public:
 Microsoft::CodeAnalysis::Solution ^ WithDocumentSourceCodeKind(Microsoft::CodeAnalysis::DocumentId ^ documentId, Microsoft::CodeAnalysis::SourceCodeKind sourceCodeKind);
public Microsoft.CodeAnalysis.Solution WithDocumentSourceCodeKind (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.SourceCodeKind sourceCodeKind);
member this.WithDocumentSourceCodeKind : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.SourceCodeKind -> Microsoft.CodeAnalysis.Solution
Public Function WithDocumentSourceCodeKind (documentId As DocumentId, sourceCodeKind As SourceCodeKind) As Solution

Parameters

documentId
DocumentId
sourceCodeKind
SourceCodeKind

Returns

Applies to