C# Class Microsoft.VisualStudio.Project.AssemblyReferenceNode

Inheritance: ReferenceNode
Mostra file Open project: IntelliTect/PowerStudio Class Usage Examples

Private Properties

Property Type Description
CreateFromAssemblyName void
GetFullPathFromPath string
GetPathNameFromProjectFile void
InitializeFileChangeEvents void
OnAssemblyReferenceChangedOnDisk void
ResolveAssemblyReference void
SetHintPathAndPrivateValue void
SetReferenceProperties void
UnregisterFromFileChangeService void

Public Methods

Method Description
AssemblyReferenceNode ( ProjectNode root, ProjectElement element ) : System

Constructor for the ReferenceNode

AssemblyReferenceNode ( ProjectNode root, string assemblyPath ) : System

Constructor for the AssemblyReferenceNode

Close ( ) : int

Closes the node.

Protected Methods

Method Description
BindReferenceData ( ) : void

Links a reference node to the project and hierarchy.

CanShowDefaultIcon ( ) : bool

Determines if this is node a valid node for painting the default reference icon.

Dispose ( bool disposing ) : void

Disposes the node

IsAlreadyAdded ( ReferenceNode &existingReference ) : bool

Checks if an assembly is already added. The method parses all references and compares the full assemblynames, or the location of the assemblies to decide whether two assemblies are the same.

ResolveReference ( ) : void

Private Methods

Method Description
CreateFromAssemblyName ( AssemblyName name ) : void
GetFullPathFromPath ( string path ) : string
GetPathNameFromProjectFile ( ) : void
InitializeFileChangeEvents ( ) : void

Registers with File change events

OnAssemblyReferenceChangedOnDisk ( object sender, FileChangedOnDiskEventArgs e ) : void

Event callback. Called when one of the assembly file is changed.

ResolveAssemblyReference ( ) : void

Does the actual job of resolving an assembly reference. We need a private method that does not violate calling virtual method from the constructor.

SetHintPathAndPrivateValue ( ) : void
SetReferenceProperties ( ) : void

This function ensures that some properties of the reference are set.

UnregisterFromFileChangeService ( ) : void

Unregisters this node from file change notifications.

Method Details

AssemblyReferenceNode() public method

Constructor for the ReferenceNode
public AssemblyReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
return System

AssemblyReferenceNode() public method

Constructor for the AssemblyReferenceNode
public AssemblyReferenceNode ( ProjectNode root, string assemblyPath ) : System
root ProjectNode
assemblyPath string
return System

BindReferenceData() protected method

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

CanShowDefaultIcon() protected method

Determines if this is node a valid node for painting the default reference icon.
protected CanShowDefaultIcon ( ) : bool
return bool

Close() public method

Closes the node.
public Close ( ) : int
return int

Dispose() protected method

Disposes the node
protected Dispose ( bool disposing ) : void
disposing bool
return void

IsAlreadyAdded() protected method

Checks if an assembly is already added. The method parses all references and compares the full assemblynames, or the location of the assemblies to decide whether two assemblies are the same.
protected IsAlreadyAdded ( ReferenceNode &existingReference ) : bool
existingReference ReferenceNode
return bool

ResolveReference() protected method

protected ResolveReference ( ) : void
return void