IDatabaseReferenceContainer.AddReference 方法 (VSCOMPONENTSELECTORDATA, String)
向项目添加新的引用。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Project
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
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
参数
- selectorData
类型:Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA
要添加的引用的相关信息。
- includePath
类型:System.String
MSBuild 项的 include 特性值。
返回值
类型:Microsoft.VisualStudio.Data.Schema.Package.Project.IDatabaseReferenceNode
创建的引用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。