C# Class Microsoft.VisualStudio.Project.ReferenceNode

Inheritance: HierarchyNode
Afficher le fichier Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Méthodes publiques

Méthode Description
AddReference ( ) : void

Links a reference node to the project and hierarchy.

GetAutomationObject ( ) : object

Get an instance of the automation object for ReferenceNode

GetEditLabel ( ) : string

Disable inline editing of Caption of a ReferendeNode

GetIconHandle ( bool open ) : object
GetMKDocument ( ) : string

This method is called by the interface method GetMkDocument to specify the item moniker.

IsAlreadyAdded ( ReferenceNode &existingEquivalentNode ) : bool

Checks if a reference is already added. The method parses all references and compares the Url.

PrepareSelectedNodesForClipboard ( ) : StringBuilder

References node cannot be dragged.

RefreshReference ( ) : void

Refreshes a reference by re-resolving it and redrawing the icon.

Méthodes protégées

Méthode Description
BindReferenceData ( ) : void
CanAddReference ( CannotAddReferenceErrorMessage &errorHandler ) : bool

Validates that a reference can be added.

CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
CreatePropertiesObject ( ) : NodeProperties
ExcludeFromProject ( ) : int

Not supported.

ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
IsAlreadyAdded ( ) : bool

Checks if a reference is already added. The method parses all references and compares the Url.

QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, EnvDTE.vsCommandStatus &result ) : int
ReferenceNode ( ProjectNode root ) : System

constructor for the ReferenceNode

ReferenceNode ( ProjectNode root, ProjectElement element ) : System

constructor for the ReferenceNode

ResolveReference ( ) : void

Resolves references.

ShowObjectBrowser ( ) : int

Shows the Object Browser

Method Details

AddReference() public méthode

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

BindReferenceData() protected abstract méthode

protected abstract BindReferenceData ( ) : void
Résultat void

CanAddReference() protected méthode

Validates that a reference can be added.
protected CanAddReference ( CannotAddReferenceErrorMessage &errorHandler ) : bool
errorHandler CannotAddReferenceErrorMessage A CannotAddReferenceErrorMessage delegate to show the error message.
Résultat bool

CanDeleteItem() protected méthode

protected CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
deleteOperation __VSDELETEITEMOPERATION
Résultat bool

CreatePropertiesObject() protected méthode

protected CreatePropertiesObject ( ) : NodeProperties
Résultat NodeProperties

ExcludeFromProject() protected méthode

Not supported.
protected ExcludeFromProject ( ) : int
Résultat int

ExecCommandOnNode() protected méthode

protected ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
cmdGroup System.Guid
cmd uint
nCmdexecopt Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT
pvaIn System.IntPtr
pvaOut System.IntPtr
Résultat int

GetAutomationObject() public méthode

Get an instance of the automation object for ReferenceNode
public GetAutomationObject ( ) : object
Résultat object

GetEditLabel() public méthode

Disable inline editing of Caption of a ReferendeNode
public GetEditLabel ( ) : string
Résultat string

GetIconHandle() public méthode

public GetIconHandle ( bool open ) : object
open bool
Résultat object

GetMKDocument() public méthode

This method is called by the interface method GetMkDocument to specify the item moniker.
public GetMKDocument ( ) : string
Résultat string

IsAlreadyAdded() protected méthode

Checks if a reference is already added. The method parses all references and compares the Url.
protected IsAlreadyAdded ( ) : bool
Résultat bool

IsAlreadyAdded() public méthode

Checks if a reference is already added. The method parses all references and compares the Url.
public IsAlreadyAdded ( ReferenceNode &existingEquivalentNode ) : bool
existingEquivalentNode ReferenceNode The existing reference, if one is found.
Résultat bool

PrepareSelectedNodesForClipboard() public méthode

References node cannot be dragged.
public PrepareSelectedNodesForClipboard ( ) : StringBuilder
Résultat StringBuilder

QueryStatusOnNode() protected méthode

protected QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, EnvDTE.vsCommandStatus &result ) : int
cmdGroup System.Guid
cmd uint
pCmdText System.IntPtr
result EnvDTE.vsCommandStatus
Résultat int

ReferenceNode() protected méthode

constructor for the ReferenceNode
protected ReferenceNode ( ProjectNode root ) : System
root ProjectNode
Résultat System

ReferenceNode() protected méthode

constructor for the ReferenceNode
protected ReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
Résultat System

RefreshReference() public méthode

Refreshes a reference by re-resolving it and redrawing the icon.
public RefreshReference ( ) : void
Résultat void

ResolveReference() protected méthode

Resolves references.
protected ResolveReference ( ) : void
Résultat void

ShowObjectBrowser() protected méthode

Shows the Object Browser
protected ShowObjectBrowser ( ) : int
Résultat int