共用方式為


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 命名空間