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

参数

  • includePath
    类型:System.String
    MSBuild 项的 include 特性值。

返回值

类型:Microsoft.VisualStudio.Data.Schema.Package.Project.IDatabaseReferenceNode
创建的引用。

.NET Framework 安全性

请参见

参考

IDatabaseReferenceContainer 接口

AddReference 重载

Microsoft.VisualStudio.Data.Schema.Package.Project 命名空间