VCReferences.AddProjectReferenceByIdentifierEx Method

Adds an assembly (.NET) reference to the selected project using its unique identifier.

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

Syntax

'Declaration
Function AddProjectReferenceByIdentifierEx ( _
    Identifier As String, _
    <OutAttribute> ByRef created As Boolean _
) As Object
Object AddProjectReferenceByIdentifierEx(
    string Identifier,
    out bool created
)
Object^ AddProjectReferenceByIdentifierEx(
    [InAttribute] String^ Identifier, 
    [OutAttribute] bool% created
)
abstract AddProjectReferenceByIdentifierEx : 
        Identifier:string * 
        created:bool byref -> Object
function AddProjectReferenceByIdentifierEx(
    Identifier : String, 
    created : boolean
) : Object

Parameters

  • Identifier
    Type: String

    Unique identifier of the assembly.

  • created
    Type: Boolean%

    When this method returns, contains true if the reference is created; otherwise, false. This parameter is passed uninitialized.

Return Value

Type: Object
The path of the assembly.

Remarks

This method is the same as the AddProjectReferenceByIdentifier method, but includes the created parameter to support interoperability.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace