C# Class Microsoft.VisualStudio.Project.ProjectReferenceNode

Inheritance: ReferenceNode
Exibir arquivo Open project: IntelliTect/PowerStudio Class Usage Examples

Private Properties

Property Type Description
IsReferenceInCycle bool
IsThisProjectReferenceInCycle bool
ProjectReferenceNode System
ShowCircularReferenceErrorMessage void

Public Methods

Method Description
AddReference ( ) : void

The node is added to the hierarchy and then updates the build dependency list.

ProjectReferenceNode ( ProjectNode root, string referencedProjectName, string projectPath, string projectReference ) : System

constructor for the ProjectReferenceNode

Remove ( bool removeFromStorage ) : void

Overridden method. The method updates the build dependency list before removing the node from the hierarchy.

Protected Methods

Method Description
BindReferenceData ( ) : void

Links a reference node to the project file.

CanAddReference ( CannotAddReferenceErrorMessage &errorHandler ) : bool

Checks if a project reference can be added to the hierarchy. It calls base to see if the reference is not already there, then checks for circular references.

CanShowDefaultIcon ( ) : bool

Defines whether this node is valid node for painting the refererence icon.

CreatePropertiesObject ( ) : NodeProperties

Private Methods

Method Description
IsReferenceInCycle ( System.Guid projectGuid ) : bool

Checks whether a reference added to a given project would introduce a circular dependency.

IsThisProjectReferenceInCycle ( ) : bool
ProjectReferenceNode ( ProjectNode root, ProjectElement element ) : System
ShowCircularReferenceErrorMessage ( ) : void

Method Details

AddReference() public method

The node is added to the hierarchy and then updates the build dependency list.
public AddReference ( ) : void
return void

BindReferenceData() protected method

Links a reference node to the project file.
protected BindReferenceData ( ) : void
return void

CanAddReference() protected method

Checks if a project reference can be added to the hierarchy. It calls base to see if the reference is not already there, then checks for circular references.
protected CanAddReference ( CannotAddReferenceErrorMessage &errorHandler ) : bool
errorHandler CannotAddReferenceErrorMessage The error handler delegate to return
return bool

CanShowDefaultIcon() protected method

Defines whether this node is valid node for painting the refererence icon.
protected CanShowDefaultIcon ( ) : bool
return bool

CreatePropertiesObject() protected method

protected CreatePropertiesObject ( ) : NodeProperties
return NodeProperties

ProjectReferenceNode() public method

constructor for the ProjectReferenceNode
public ProjectReferenceNode ( ProjectNode root, string referencedProjectName, string projectPath, string projectReference ) : System
root ProjectNode
referencedProjectName string
projectPath string
projectReference string
return System

Remove() public method

Overridden method. The method updates the build dependency list before removing the node from the hierarchy.
public Remove ( bool removeFromStorage ) : void
removeFromStorage bool
return void