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

声明
Function AddAssemblyReference ( _
    bstrRef As String _
) As Object
用法
Dim instance As VCReferences
Dim bstrRef As String
Dim returnValue As Object

returnValue = instance.AddAssemblyReference(bstrRef)
Object AddAssemblyReference(
    string bstrRef
)
Object^ AddAssemblyReference(
    [InAttribute] String^ bstrRef
)
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.

Permissions

See Also

Reference

VCReferences Interface

VCReferences Members

Microsoft.VisualStudio.VCProjectEngine Namespace