Workspace
Workspace(HostServices, String)
CanOpenDocuments
CurrentSolution
Kind
Options
PartialSemanticsEnabled
Services
AdjustReloadedProject(Project, Project)
AdjustReloadedSolution(Solution, Solution)
ApplyAdditionalDocumentAdded(DocumentInfo, SourceText)
ApplyAdditionalDocumentRemoved(DocumentId)
ApplyAdditionalDocumentTextChanged(DocumentId, SourceText)
ApplyAnalyzerConfigDocumentAdded(DocumentInfo, SourceText)
ApplyAnalyzerConfigDocumentRemoved(DocumentId)
ApplyAnalyzerConfigDocumentTextChanged(DocumentId, SourceText)
ApplyAnalyzerReferenceAdded(ProjectId, AnalyzerReference)
ApplyAnalyzerReferenceRemoved(ProjectId, AnalyzerReference)
ApplyCompilationOptionsChanged(ProjectId, CompilationOptions)
ApplyDocumentAdded(DocumentInfo, SourceText)
ApplyDocumentInfoChanged(DocumentId, DocumentInfo)
ApplyDocumentRemoved(DocumentId)
ApplyDocumentTextChanged(DocumentId, SourceText)
ApplyMetadataReferenceAdded(ProjectId, MetadataReference)
ApplyMetadataReferenceRemoved(ProjectId, MetadataReference)
ApplyParseOptionsChanged(ProjectId, ParseOptions)
ApplyProjectAdded(ProjectInfo)
ApplyProjectChanges(ProjectChanges)
ApplyProjectReferenceAdded(ProjectId, ProjectReference)
ApplyProjectReferenceRemoved(ProjectId, ProjectReference)
ApplyProjectRemoved(ProjectId)
CanApplyChange(ApplyChangesKind)
CanApplyCompilationOptionChange(CompilationOptions, CompilationOptions, Project)
CanApplyParseOptionChange(ParseOptions, ParseOptions, Project)
CheckAdditionalDocumentIsInCurrentSolution(DocumentId)
CheckAdditionalDocumentIsNotInCurrentSolution(DocumentId)
CheckAnalyzerConfigDocumentIsInCurrentSolution(DocumentId)
CheckAnalyzerConfigDocumentIsNotInCurrentSolution(DocumentId)
CheckCanOpenDocuments()
CheckDocumentCanBeRemoved(DocumentId)
CheckDocumentIsClosed(DocumentId)
CheckDocumentIsInCurrentSolution(DocumentId)
CheckDocumentIsNotInCurrentSolution(DocumentId)
CheckDocumentIsOpen(DocumentId)
CheckProjectCanBeRemoved(ProjectId)
CheckProjectDoesNotContainOpenDocuments(ProjectId)
CheckProjectDoesNotHaveAnalyzerReference(ProjectId, AnalyzerReference)
CheckProjectDoesNotHaveMetadataReference(ProjectId, MetadataReference)
CheckProjectDoesNotHaveProjectReference(ProjectId, ProjectReference)
CheckProjectDoesNotHaveTransitiveProjectReference(ProjectId, ProjectId)
CheckProjectHasAnalyzerReference(ProjectId, AnalyzerReference)
CheckProjectHasMetadataReference(ProjectId, MetadataReference)
CheckProjectHasProjectReference(ProjectId, ProjectReference)
CheckProjectIsInCurrentSolution(ProjectId)
CheckProjectIsNotInCurrentSolution(ProjectId)
CheckSolutionIsEmpty()
ClearDocumentData(DocumentId)
ClearOpenDocument(DocumentId)
ClearOpenDocument(DocumentId, Boolean)
ClearProjectData(ProjectId)
ClearSolution()
ClearSolutionData()
CloseAdditionalDocument(DocumentId)
CloseAnalyzerConfigDocument(DocumentId)
CloseDocument(DocumentId)
CreateSolution(SolutionId)
CreateSolution(SolutionInfo)
Dispose()
Dispose(Boolean)
GetAdditionalDocumentName(DocumentId)
GetAnalyzerConfigDocumentName(DocumentId)
GetDocumentIdInCurrentContext(SourceTextContainer)
GetDocumentName(DocumentId)
GetOpenDocumentIds(ProjectId)
GetProjectName(ProjectId)
GetRelatedDocumentIds(SourceTextContainer)
GetWorkspaceRegistration(SourceTextContainer)
IsDocumentOpen(DocumentId)
OnAdditionalDocumentAdded(DocumentInfo)
OnAdditionalDocumentClosed(DocumentId, TextLoader)
OnAdditionalDocumentOpened(DocumentId, SourceTextContainer, Boolean)
OnAdditionalDocumentRemoved(DocumentId)
OnAdditionalDocumentTextChanged(DocumentId, SourceText, PreservationMode)
OnAdditionalDocumentTextLoaderChanged(DocumentId, TextLoader)
OnAnalyzerConfigDocumentAdded(DocumentInfo)
OnAnalyzerConfigDocumentClosed(DocumentId, TextLoader)
OnAnalyzerConfigDocumentOpened(DocumentId, SourceTextContainer, Boolean)
OnAnalyzerConfigDocumentRemoved(DocumentId)
OnAnalyzerConfigDocumentTextChanged(DocumentId, SourceText, PreservationMode)
OnAnalyzerConfigDocumentTextLoaderChanged(DocumentId, TextLoader)
OnAnalyzerReferenceAdded(ProjectId, AnalyzerReference)
OnAnalyzerReferenceRemoved(ProjectId, AnalyzerReference)
OnAssemblyNameChanged(ProjectId, String)
OnCompilationOptionsChanged(ProjectId, CompilationOptions)
OnDocumentAdded(DocumentInfo)
OnDocumentClosed(DocumentId, TextLoader, Boolean)
OnDocumentClosing(DocumentId)
OnDocumentContextUpdated(DocumentId)
OnDocumentInfoChanged(DocumentId, DocumentInfo)
OnDocumentOpened(DocumentId, SourceTextContainer, Boolean)
OnDocumentReloaded(DocumentInfo)
OnDocumentRemoved(DocumentId)
OnDocumentsAdded(ImmutableArray<DocumentInfo>)
OnDocumentSourceCodeKindChanged(DocumentId, SourceCodeKind)
OnDocumentTextChanged(Document)
OnDocumentTextChanged(DocumentId, SourceText, PreservationMode)
OnDocumentTextLoaderChanged(DocumentId, TextLoader)
OnMetadataReferenceAdded(ProjectId, MetadataReference)
OnMetadataReferenceRemoved(ProjectId, MetadataReference)
OnOutputFilePathChanged(ProjectId, String)
OnOutputRefFilePathChanged(ProjectId, String)
OnParseOptionsChanged(ProjectId, ParseOptions)
OnProjectAdded(ProjectInfo)
OnProjectNameChanged(ProjectId, String, String)
OnProjectReferenceAdded(ProjectId, ProjectReference)
OnProjectReferenceRemoved(ProjectId, ProjectReference)
OnProjectReloaded(ProjectInfo)
OnProjectRemoved(ProjectId)
OnSolutionAdded(SolutionInfo)
OnSolutionReloaded(SolutionInfo)
OnSolutionRemoved()
OnWorkspaceFailed(WorkspaceDiagnostic)
OpenAdditionalDocument(DocumentId, Boolean)
OpenAnalyzerConfigDocument(DocumentId, Boolean)
OpenDocument(DocumentId, Boolean)
RaiseDocumentActiveContextChangedEventAsync(Document)
RaiseDocumentActiveContextChangedEventAsync(SourceTextContainer, DocumentId, DocumentId)
RaiseDocumentClosedEventAsync(Document)
RaiseDocumentOpenedEventAsync(Document)
RaiseTextDocumentClosedEventAsync(TextDocument)
RaiseTextDocumentOpenedEventAsync(TextDocument)
RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind, Solution, Solution, ProjectId, DocumentId)
RegisterDocumentActiveContextChangedHandler(Action<DocumentActiveContextChangedEventArgs>, WorkspaceEventOptions?)
RegisterDocumentClosedHandler(Action<DocumentEventArgs>, WorkspaceEventOptions?)
RegisterDocumentOpenedHandler(Action<DocumentEventArgs>, WorkspaceEventOptions?)
RegisterText(SourceTextContainer)
RegisterTextDocumentClosedHandler(Action<TextDocumentEventArgs>, WorkspaceEventOptions?)
RegisterTextDocumentOpenedHandler(Action<TextDocumentEventArgs>, WorkspaceEventOptions?)
RegisterWorkspaceChangedHandler(Action<WorkspaceChangeEventArgs>, WorkspaceEventOptions?)
RegisterWorkspaceChangedImmediateHandler(Action<WorkspaceChangeEventArgs>, WorkspaceEventOptions?)
RegisterWorkspaceFailedHandler(Action<WorkspaceDiagnosticEventArgs>, WorkspaceEventOptions?)
ScheduleTask(Action, String)
ScheduleTask<T>(Func<T>, String)
SetCurrentSolution(Solution)
TryApplyChanges(Solution)
TryGetWorkspace(SourceTextContainer, Workspace)
UnregisterText(SourceTextContainer)
UpdateReferencesAfterAdd()
DocumentActiveContextChanged
DocumentClosed
DocumentOpened
TextDocumentClosed
TextDocumentOpened
WorkspaceChanged
WorkspaceFailed
net10.0
namespace Microsoft.CodeAnalysis
{
public abstract class Workspace : IDisposable
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use RegisterDocumentActiveContextChangedHandler instead, which by default will no longer run on the UI thread.", false)]
public event EventHandler<DocumentActiveContextChangedEventArgs!>! DocumentActiveContextChanged;
}
}
| nuget.org | 0.0 % Reference this API 0.0 % Subscribe to this event 0.0 % Unsubscribe from this event |
|---|---|
| .NET | 8.09.010.0 |
Information specific to net10.0 | |
| Assembly | Microsoft.CodeAnalysis.Workspaces , Version=5.0.0.0, PublicKeyToken=31bf3856ad364e35 |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.CodeAnalysis.Workspaces.Common (5.0.0) net9.0 |
| Obsolete | Use RegisterDocumentActiveContextChangedHandler instead, which by default will no longer run on the UI thread. |
| Platform Restrictions | The event adder is supported on all platforms. The event remover is supported on all platforms. |
- Built-in API
- Package-provided API