IDatabaseReferenceContainer.AddReference Method (VSCOMPONENTSELECTORDATA)
Adds a new reference to the project.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Function AddReference ( _
selectorData As VSCOMPONENTSELECTORDATA _
) As IDatabaseReferenceNode
'Usage
Dim instance As IDatabaseReferenceContainer
Dim selectorData As VSCOMPONENTSELECTORDATA
Dim returnValue As IDatabaseReferenceNode
returnValue = instance.AddReference(selectorData)
IDatabaseReferenceNode AddReference(
VSCOMPONENTSELECTORDATA selectorData
)
IDatabaseReferenceNode^ AddReference(
VSCOMPONENTSELECTORDATA selectorData
)
function AddReference(
selectorData : VSCOMPONENTSELECTORDATA
) : IDatabaseReferenceNode
abstract AddReference :
selectorData:VSCOMPONENTSELECTORDATA -> IDatabaseReferenceNode
Parameters
- selectorData
Type: Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA
The information about the reference that you want to add
Return Value
Type: Microsoft.VisualStudio.Data.Schema.Project.Project.IDatabaseReferenceNode
.NET Framework Security
- 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.
See Also
Reference
IDatabaseReferenceContainer Interface
IDatabaseReferenceContainer Members
Microsoft.VisualStudio.Data.Schema.Project.Project Namespace