Compartilhar via


VCReferences.AddReferenceToFile(String) Method

Definition

Adds a reference to a file.

public:
 System::Object ^ AddReferenceToFile(System::String ^ Path);
public:
 Platform::Object ^ AddReferenceToFile(Platform::String ^ Path);
winrt::Windows::Foundation::IInspectable AddReferenceToFile(std::wstring const & Path);
[System.Runtime.InteropServices.DispId(912)]
public object AddReferenceToFile (string Path);
[<System.Runtime.InteropServices.DispId(912)>]
abstract member AddReferenceToFile : string -> obj
Public Function AddReferenceToFile (Path As String) As Object

Parameters

Path
String

Path to the file.

Returns

A reference to a file.

Attributes

Remarks

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

Applies to