共用方式為


Workspace.OnDocumentInfoChanged(DocumentId, DocumentInfo) 方法

定義

當檔資訊變更時,呼叫這個方法,例如名稱、資料夾或檔案路徑。

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

參數

documentId
DocumentId
newInfo
DocumentInfo

適用於