共用方式為


Solution.WithDocumentSourceCodeKind(DocumentId, SourceCodeKind) 方法

定義

使用指定的檔來建立新的方案實例,以指定原始程式碼種類。

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

參數

documentId
DocumentId
sourceCodeKind
SourceCodeKind

傳回

適用於