VCReferences.AddAssemblyReferenceWithStrongNameEx 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用程序集的强名称向所选项目添加该程序集 (.NET) 引用。
public:
System::Object ^ AddAssemblyReferenceWithStrongNameEx(System::String ^ bstrRef, System::String ^ bstrAssemblyName, [Runtime::InteropServices::Out] bool % created);
winrt::Windows::Foundation::IInspectable AddAssemblyReferenceWithStrongNameEx(std::wstring const & bstrRef, std::wstring const & bstrAssemblyName, [Runtime::InteropServices::Out] bool & created);
[System.Runtime.InteropServices.DispId(914)]
public object AddAssemblyReferenceWithStrongNameEx (string bstrRef, string bstrAssemblyName, out bool created);
[<System.Runtime.InteropServices.DispId(914)>]
abstract member AddAssemblyReferenceWithStrongNameEx : string * string * bool -> obj
Public Function AddAssemblyReferenceWithStrongNameEx (bstrRef As String, bstrAssemblyName As String, ByRef created As Boolean) As Object
参数
- bstrRef
- String
一个表示要添加的程序集路径的字符串。
- bstrAssemblyName
- String
程序集的强名称。
- created
- Boolean
此方法返回时, true 如果创建了该引用,则包含; 否则为 false 。 此参数未经初始化即被传递。
返回
程序集的路径。
- 属性
注解
此方法与 AddAssemblyReferenceWithStrongName 方法相同,但包含 created 参数以支持互操作性。