Document.WithSourceCodeKind(SourceCodeKind) 方法

定义

创建本文档的新实例,更新为指定源代码类型。

public:
 Microsoft::CodeAnalysis::Document ^ WithSourceCodeKind(Microsoft::CodeAnalysis::SourceCodeKind kind);
public Microsoft.CodeAnalysis.Document WithSourceCodeKind (Microsoft.CodeAnalysis.SourceCodeKind kind);
member this.WithSourceCodeKind : Microsoft.CodeAnalysis.SourceCodeKind -> Microsoft.CodeAnalysis.Document
Public Function WithSourceCodeKind (kind As SourceCodeKind) As Document

参数

返回

适用于