Adds a reference of the appropriate type using information from the supplied selector data structure.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function AddReferenceFromSelectorData ( _
selectorData As VSCOMPONENTSELECTORDATA _
) As ReferenceNode
'使用
Dim instance As ReferenceContainerNode
Dim selectorData As VSCOMPONENTSELECTORDATA
Dim returnValue As ReferenceNode
returnValue = instance.AddReferenceFromSelectorData(selectorData)
public ReferenceNode AddReferenceFromSelectorData(
VSCOMPONENTSELECTORDATA selectorData
)
public:
virtual ReferenceNode^ AddReferenceFromSelectorData(
VSCOMPONENTSELECTORDATA selectorData
) sealed
public final function AddReferenceFromSelectorData(
selectorData : VSCOMPONENTSELECTORDATA
) : ReferenceNode
Parameters
selectorData
Type: Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA
Return Value
Type: Microsoft.VisualStudio.Package.ReferenceNode
A new instance of a ReferenceNode of the correct type. If the node could not be instantiated for any reason, returns a null reference (Nothing in Visual Basic).
Implements
IReferenceContainer.AddReferenceFromSelectorData(VSCOMPONENTSELECTORDATA)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.