Compartilhar via


VCReferences.AddAssemblyReference Method

Adds an assembly (.NET) reference to the selected project.

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

Syntax

'Declaration
Function AddAssemblyReference ( _
    bstrRef As String _
) As Object
Object AddAssemblyReference(
    string bstrRef
)
Object^ AddAssemblyReference(
    [InAttribute] String^ bstrRef
)
abstract AddAssemblyReference : 
        bstrRef:string -> Object
function AddAssemblyReference(
    bstrRef : String
) : Object

Parameters

  • bstrRef
    Type: System.String

    A string representing the path of the assembly to add.

Return Value

Type: System.Object
The path of the assembly.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace