次の方法で共有


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