Udostępnij za pośrednictwem


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

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

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace