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

返回

适用于