VCReferences.AddReferenceToFileEx(String, Boolean) 方法

定义

向文件添加引用。

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 。 此参数未经初始化即被传递。

返回

Object

对文件的引用。

属性

注解

如果找不到文件引用,则会引发异常。

此方法与 AddReferenceToFile 方法相同,但包含 created 参数以支持互操作性。

适用于