Поделиться через


VCReferences.AddReferenceToFileEx Method

Adds a reference to a file.

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

Syntax

'Декларация
Function AddReferenceToFileEx ( _
    Path As String, _
    <OutAttribute> ByRef created As Boolean _
) As Object
Object AddReferenceToFileEx(
    string Path,
    out bool created
)
Object^ AddReferenceToFileEx(
    [InAttribute] String^ Path, 
    [OutAttribute] bool% created
)
abstract AddReferenceToFileEx : 
        Path:string * 
        created:bool byref -> Object 
function AddReferenceToFileEx(
    Path : String, 
    created : boolean
) : Object

Parameters

  • 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.

Remarks

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.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace