VCReferences.AddReferenceToFile Method
Adds a reference to a file.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
Function AddReferenceToFile ( _
Path As String _
) As Object
Object AddReferenceToFile(
string Path
)
Object^ AddReferenceToFile(
[InAttribute] String^ Path
)
abstract AddReferenceToFile :
Path:string -> Object
function AddReferenceToFile(
Path : String
) : Object
Parameters
- Path
Type: System.String
Path to the file.
Return Value
Type: System.Object
A reference to a file.
Remarks
An exception is thrown if a file reference cannot be found.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.