C# Class Microsoft.VisualStudio.Project.AssemblyReferenceNode

Inheritance: ReferenceNode
Afficher le fichier Open project: IntelliTect/PowerStudio Class Usage Examples

Private Properties

Свойство Type Description
CreateFromAssemblyName void
GetFullPathFromPath string
GetPathNameFromProjectFile void
InitializeFileChangeEvents void
OnAssemblyReferenceChangedOnDisk void
ResolveAssemblyReference void
SetHintPathAndPrivateValue void
SetReferenceProperties void
UnregisterFromFileChangeService void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Constructor for the ReferenceNode
public AssemblyReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
Résultat System

AssemblyReferenceNode() public méthode

Constructor for the AssemblyReferenceNode
public AssemblyReferenceNode ( ProjectNode root, string assemblyPath ) : System
root ProjectNode
assemblyPath string
Résultat System

BindReferenceData() protected méthode

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

CanShowDefaultIcon() protected méthode

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

Close() public méthode

Closes the node.
public Close ( ) : int
Résultat int

Dispose() protected méthode

Disposes the node
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

IsAlreadyAdded() protected méthode

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
Résultat bool

ResolveReference() protected méthode

protected ResolveReference ( ) : void
Résultat void