C# Class Microsoft.VisualStudio.Project.ReferenceNode

Inheritance: HierarchyNode
Exibir arquivo Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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

BindReferenceData() protected abstract method

protected abstract BindReferenceData ( ) : void
return void

CanAddReference() protected method

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

CanDeleteItem() protected method

protected CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
deleteOperation __VSDELETEITEMOPERATION
return bool

CreatePropertiesObject() protected method

protected CreatePropertiesObject ( ) : NodeProperties
return NodeProperties

ExcludeFromProject() protected method

Not supported.
protected ExcludeFromProject ( ) : int
return int

ExecCommandOnNode() protected method

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
return int

GetAutomationObject() public method

Get an instance of the automation object for ReferenceNode
public GetAutomationObject ( ) : object
return object

GetEditLabel() public method

Disable inline editing of Caption of a ReferendeNode
public GetEditLabel ( ) : string
return string

GetIconHandle() public method

public GetIconHandle ( bool open ) : object
open bool
return object

GetMKDocument() public method

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

IsAlreadyAdded() protected method

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

IsAlreadyAdded() public method

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.
return bool

PrepareSelectedNodesForClipboard() public method

References node cannot be dragged.
public PrepareSelectedNodesForClipboard ( ) : StringBuilder
return StringBuilder

QueryStatusOnNode() protected method

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

ReferenceNode() protected method

constructor for the ReferenceNode
protected ReferenceNode ( ProjectNode root ) : System
root ProjectNode
return System

ReferenceNode() protected method

constructor for the ReferenceNode
protected ReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
return System

RefreshReference() public method

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

ResolveReference() protected method

Resolves references.
protected ResolveReference ( ) : void
return void

ShowObjectBrowser() protected method

Shows the Object Browser
protected ShowObjectBrowser ( ) : int
return int