VCReferences.AddReferenceToFileEx(String, Boolean) VCReferences.AddReferenceToFileEx(String, Boolean) VCReferences.AddReferenceToFileEx(String, Boolean) VCReferences.AddReferenceToFileEx(String, Boolean) Method

Definition

Adds a reference to a file.

public:
 System::Object ^ AddReferenceToFileEx(System::String ^ Path, [Runtime::InteropServices::Out] bool % created);
[System.Runtime.InteropServices.DispId(917)]
public object AddReferenceToFileEx (string Path, out bool created);
abstract member AddReferenceToFileEx : string *  -> obj
Public Function AddReferenceToFileEx (Path As String, ByRef created As Boolean) As Object
Parameters
Path
String String String String

Path to the file.

created
Boolean Boolean Boolean 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.

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