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