共用方式為


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

適用於