Compartir a través de


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

'Declaración
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: System.String
    Unique identifier of the assembly.
  • 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
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