Udostępnij za pośrednictwem


WorkspaceChangeEventArgs Class

Definition

The EventArgs describing any kind of workspace change.

public ref class WorkspaceChangeEventArgs : EventArgs
public class WorkspaceChangeEventArgs : EventArgs
type WorkspaceChangeEventArgs = class
    inherit EventArgs
Public Class WorkspaceChangeEventArgs
Inherits EventArgs
Inheritance
WorkspaceChangeEventArgs

Remarks

When linked files are edited, one document change event is fired per linked file. All of these events contain the same OldSolution, and they all contain the same NewSolution. This is so that we can trigger document change events on all affected documents without reporting intermediate states in which the linked file contents do not match.

Constructors

WorkspaceChangeEventArgs(WorkspaceChangeKind, Solution, Solution, ProjectId, DocumentId)

Properties

DocumentId

The id of the affected Document. Can be null if this is an change unrelated to a document (for example ProjectAdded. Should be non-null for:

Kind
NewSolution
OldSolution
ProjectId

The id of the affected Project. Can be null if this is an change unrelated to a project (for example SolutionReloaded. Should be non-null for:

Applies to