Workspace.OnDocumentSourceCodeKindChanged(DocumentId, SourceCodeKind) 方法

定义

当文档的 SourceCodeKind 在主机环境中更改时调用此方法。

protected public:
 void OnDocumentSourceCodeKindChanged(Microsoft::CodeAnalysis::DocumentId ^ documentId, Microsoft::CodeAnalysis::SourceCodeKind sourceCodeKind);
protected internal void OnDocumentSourceCodeKindChanged (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.SourceCodeKind sourceCodeKind);
member this.OnDocumentSourceCodeKindChanged : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.SourceCodeKind -> unit
Protected Friend Sub OnDocumentSourceCodeKindChanged (documentId As DocumentId, sourceCodeKind As SourceCodeKind)

参数

documentId
DocumentId
sourceCodeKind
SourceCodeKind

适用于