IDatabaseReferenceContainer.AddReference Method (VSCOMPONENTSELECTORDATA, String)
Adds a new reference to the project.
Namespace: Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)
Syntax
'Declaration
Function AddReference ( _
selectorData As VSCOMPONENTSELECTORDATA, _
includePath As String _
) As IDatabaseReferenceNode
IDatabaseReferenceNode AddReference(
VSCOMPONENTSELECTORDATA selectorData,
string includePath
)
IDatabaseReferenceNode^ AddReference(
VSCOMPONENTSELECTORDATA selectorData,
String^ includePath
)
abstract AddReference :
selectorData:VSCOMPONENTSELECTORDATA *
includePath:string -> IDatabaseReferenceNode
function AddReference(
selectorData : VSCOMPONENTSELECTORDATA,
includePath : String
) : IDatabaseReferenceNode
Parameters
- selectorData
Type: Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA
The information about the reference that will be added.
- includePath
Type: System.String
The include attribute value for the MSBuild item.
Return Value
Type: Microsoft.VisualStudio.Data.Schema.Package.Project.IDatabaseReferenceNode
The created reference.
.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
Microsoft.VisualStudio.Data.Schema.Package.Project Namespace