C# Class Microsoft.VisualStudio.Project.ReferenceContainerNode

Inheritance: HierarchyNode, IReferenceContainer
Show file Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddReferenceFromSelectorData ( VSCOMPONENTSELECTORDATA selectorData ) : ReferenceNode

Adds a reference to this container using the selector data structure to identify it.

AddReferenceFromSelectorData ( VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : ReferenceNode

Adds a reference to this container using the selector data structure to identify it.

EnumReferences ( ) : IList
GetAutomationObject ( ) : object

Returns an instance of the automation object for ReferenceContainerNode

GetEditLabel ( ) : string

Disable inline editing of Caption of a ReferendeContainerNode

GetIconHandle ( bool open ) : object
LoadReferencesFromBuildProject ( Microsoft.Build.Evaluation buildProject ) : void

Adds references to this container from a MSBuild project.

PrepareSelectedNodesForClipboard ( ) : StringBuilder

References node cannot be dragged.

ReferenceContainerNode ( ProjectNode root ) : System

Protected Methods

Method Description
CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
CanShowDefaultIcon ( ) : bool

Defines whether this node is valid node for painting the refererences icon.

CreateAssemblyReferenceNode ( ProjectElement element ) : AssemblyReferenceNode

Creates an assembly refernce node from a project element.

CreateAssemblyReferenceNode ( string fileName ) : AssemblyReferenceNode

Creates an assembly reference node from a file path.

CreateComReferenceNode ( Microsoft selectorData ) : ComReferenceNode

Creates a com reference node from a selector data.

CreateComReferenceNode ( Microsoft selectorData, string wrapperTool ) : ComReferenceNode

Creates a com reference node from a selector data.

CreateComReferenceNode ( ProjectElement reference ) : ComReferenceNode

Creates a com reference node from the project element.

CreateFileComponent ( VSCOMPONENTSELECTORDATA selectorData ) : ReferenceNode

Creates an assemby or com reference node given a selector data.

CreateFileComponent ( VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : ReferenceNode

Creates an assemby or com reference node given a selector data.

CreateProjectReferenceNode ( ProjectElement element ) : ProjectReferenceNode

Creates a project reference node given an existing project element.

CreateProjectReferenceNode ( VSCOMPONENTSELECTORDATA selectorData ) : ProjectReferenceNode

Create a Project to Project reference given a VSCOMPONENTSELECTORDATA structure

CreateReferenceNode ( VSCOMPONENTSELECTORDATA selectorData ) : ReferenceNode
CreateReferenceNode ( VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : ReferenceNode
CreateReferenceNode ( string referenceType, ProjectElement element ) : ReferenceNode
ExcludeFromProject ( ) : int

Not supported.

ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, Microsoft.VisualStudio.OLE.Interop.OLECMDEXECOPT nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, EnvDTE.vsCommandStatus &result ) : int

Method Details

AddReferenceFromSelectorData() public method

Adds a reference to this container using the selector data structure to identify it.
public AddReferenceFromSelectorData ( VSCOMPONENTSELECTORDATA selectorData ) : ReferenceNode
selectorData VSCOMPONENTSELECTORDATA data describing selected component
return ReferenceNode

AddReferenceFromSelectorData() public method

Adds a reference to this container using the selector data structure to identify it.
public AddReferenceFromSelectorData ( VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : ReferenceNode
selectorData VSCOMPONENTSELECTORDATA data describing selected component
wrapperTool string
return ReferenceNode

CanDeleteItem() protected method

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

CanShowDefaultIcon() protected method

Defines whether this node is valid node for painting the refererences icon.
protected CanShowDefaultIcon ( ) : bool
return bool

CreateAssemblyReferenceNode() protected method

Creates an assembly refernce node from a project element.
protected CreateAssemblyReferenceNode ( ProjectElement element ) : AssemblyReferenceNode
element ProjectElement
return AssemblyReferenceNode

CreateAssemblyReferenceNode() protected method

Creates an assembly reference node from a file path.
protected CreateAssemblyReferenceNode ( string fileName ) : AssemblyReferenceNode
fileName string
return AssemblyReferenceNode

CreateComReferenceNode() protected method

Creates a com reference node from a selector data.
protected CreateComReferenceNode ( Microsoft selectorData ) : ComReferenceNode
selectorData Microsoft
return ComReferenceNode

CreateComReferenceNode() protected method

Creates a com reference node from a selector data.
protected CreateComReferenceNode ( Microsoft selectorData, string wrapperTool ) : ComReferenceNode
selectorData Microsoft
wrapperTool string
return ComReferenceNode

CreateComReferenceNode() protected method

Creates a com reference node from the project element.
protected CreateComReferenceNode ( ProjectElement reference ) : ComReferenceNode
reference ProjectElement
return ComReferenceNode

CreateFileComponent() protected method

Creates an assemby or com reference node given a selector data.
protected CreateFileComponent ( VSCOMPONENTSELECTORDATA selectorData ) : ReferenceNode
selectorData VSCOMPONENTSELECTORDATA
return ReferenceNode

CreateFileComponent() protected method

Creates an assemby or com reference node given a selector data.
protected CreateFileComponent ( VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : ReferenceNode
selectorData VSCOMPONENTSELECTORDATA
wrapperTool string
return ReferenceNode

CreateProjectReferenceNode() protected method

Creates a project reference node given an existing project element.
protected CreateProjectReferenceNode ( ProjectElement element ) : ProjectReferenceNode
element ProjectElement
return ProjectReferenceNode

CreateProjectReferenceNode() protected method

Create a Project to Project reference given a VSCOMPONENTSELECTORDATA structure
protected CreateProjectReferenceNode ( VSCOMPONENTSELECTORDATA selectorData ) : ProjectReferenceNode
selectorData VSCOMPONENTSELECTORDATA
return ProjectReferenceNode

CreateReferenceNode() protected method

protected CreateReferenceNode ( VSCOMPONENTSELECTORDATA selectorData ) : ReferenceNode
selectorData VSCOMPONENTSELECTORDATA
return ReferenceNode

CreateReferenceNode() protected method

protected CreateReferenceNode ( VSCOMPONENTSELECTORDATA selectorData, string wrapperTool ) : ReferenceNode
selectorData VSCOMPONENTSELECTORDATA
wrapperTool string
return ReferenceNode

CreateReferenceNode() protected method

protected CreateReferenceNode ( string referenceType, ProjectElement element ) : ReferenceNode
referenceType string
element ProjectElement
return ReferenceNode

EnumReferences() public method

public EnumReferences ( ) : IList
return IList

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

Returns an instance of the automation object for ReferenceContainerNode
public GetAutomationObject ( ) : object
return object

GetEditLabel() public method

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

GetIconHandle() public method

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

LoadReferencesFromBuildProject() public method

Adds references to this container from a MSBuild project.
public LoadReferencesFromBuildProject ( Microsoft.Build.Evaluation buildProject ) : void
buildProject Microsoft.Build.Evaluation
return void

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

ReferenceContainerNode() public method

public ReferenceContainerNode ( ProjectNode root ) : System
root ProjectNode
return System