C# Класс VsTeXProject.VisualStudio.Project.AssemblyReferenceNode

Наследование: ReferenceNode
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateFromAssemblyName void
GetFullPathFromPath string
GetPathNameFromProjectFile void
InitializeFileChangeEvents void
OnAssemblyReferenceChangedOnDisk void
ResolveAssemblyReference void
SetHintPathAndPrivateValue void
SetHintPathAndPrivateValue void
SetReferenceProperties void
UnregisterFromFileChangeService void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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
SetHintPathAndPrivateValue ( string hintPath ) : void

Sets the hint path to the provided value. It also sets the private value to true if it has not been already provided through the associated project element.

SetReferenceProperties ( ) : void

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

UnregisterFromFileChangeService ( ) : void

Unregisters this node from file change notifications.

Описание методов

AssemblyReferenceNode() публичный Метод

Constructor for the ReferenceNode
public AssemblyReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
Результат System

AssemblyReferenceNode() публичный Метод

Constructor for the AssemblyReferenceNode
public AssemblyReferenceNode ( ProjectNode root, string assemblyPath ) : System
root ProjectNode
assemblyPath string
Результат System

BindReferenceData() защищенный Метод

Links a reference node to the project and hierarchy.
protected BindReferenceData ( ) : void
Результат void

CanShowDefaultIcon() защищенный Метод

Determines if this is node a valid node for painting the default reference icon.
protected CanShowDefaultIcon ( ) : bool
Результат bool

Close() публичный Метод

Closes the node.
public Close ( ) : int
Результат int

Dispose() защищенный Метод

Disposes the node
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

IsAlreadyAdded() защищенный Метод

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
Результат bool

ResolveReference() защищенный Метод

protected ResolveReference ( ) : void
Результат void