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
netcoreapp2.2
namespace Microsoft.CodeAnalysis
{
public abstract class Workspace : IDisposable
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use RegisterDocumentOpenedHandler instead, which by default will no longer run on the UI thread.", false)]
public event EventHandler<DocumentEventArgs!>! DocumentOpened;
}
}
| nuget.org | 0.1 % Reference this API 0.1 % Subscribe to this event 0.0 % Unsubscribe from this event |
|---|---|
| Upgrade Planner | 0.0 % Reference this API 0.0 % Subscribe to this event 0.0 % Unsubscribe from this event |
| .NET | 5.06.07.08.09.010.011.0 |
| .NET Core | 2.02.12.23.03.1 |
| .NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 |
| .NET Standard | 2.02.1 |
Information specific to netcoreapp2.2 | |
| Assembly | Microsoft.CodeAnalysis.Workspaces , Version=5.9.0.0, PublicKeyToken=31bf3856ad364e35 |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.CodeAnalysis.Workspaces.Common (5.9.0) netstandard2.0 |
| Obsolete | Use RegisterDocumentOpenedHandler instead, which by default will no longer run on the UI thread. |
| Platform Restrictions | This framework does not have platform annotations. |
- Built-in API
- Package-provided API