共用方式為


VCReferences.AddReferenceToFileEx(String, Boolean) Method

Definition

Adds a reference to a file.

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

Parameters

Path
String

Path to the file.

created
Boolean

When this method returns, contains true if the reference is created; otherwise, false. This parameter is passed uninitialized.

Returns

A reference to a file.

Attributes

Remarks

An exception is thrown if a file reference cannot be found.

This method is the same as the AddReferenceToFile method, but includes the created parameter to support interoperability.

Applies to