VCReferences::AddReferenceToFileEx Method (String^, Boolean)

 

Adds a reference to a file.

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Object^ AddReferenceToFileEx(
	String^ Path,
	[OutAttribute] bool% created
)

Parameters

Path
Type: System::String^

Path to the file.

created
Type: System::Boolean

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

Return Value

Type: System::Object^

A reference to a file.

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.

Return to top
Show: