一意識別子を使用して、選択したプロジェクトにアセンブリ (.NET) 参照を追加します。
名前空間: Microsoft.VisualStudio.VCProjectEngine
アセンブリ: Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll 内)
構文
'宣言
Function AddProjectReferenceByIdentifierEx ( _
Identifier As String, _
<OutAttribute> ByRef created As Boolean _
) As Object
Object AddProjectReferenceByIdentifierEx(
string Identifier,
out bool created
)
Object^ AddProjectReferenceByIdentifierEx(
[InAttribute] String^ Identifier,
[OutAttribute] bool% created
)
abstract AddProjectReferenceByIdentifierEx :
Identifier:string *
created:bool byref -> Object
function AddProjectReferenceByIdentifierEx(
Identifier : String,
created : boolean
) : Object
パラメーター
- Identifier
型 : System.String
アセンブリの一意の ID。
- created
型 : System.Boolean%
参照を作成すると、このメソッドはを返しますが、true が格納されています ; それ以外 false。このパラメーターは初期化せずに渡されます。
戻り値
型 : System.Object
アセンブリのパスを返します。
解説
このメソッドは AddProjectReferenceByIdentifier のメソッドと同じですが、相互運用性をサポートするために created のパラメーターが含まれています。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。