VCReferences.AddReferenceToFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.