VCReferences.AddAssemblyReferenceWithStrongName Method

Adds an assembly (.NET) reference to the selected project using its strong name.

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

Syntax

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

Parameters

  • bstrRef
    Type: System.String

    A string representing the path of the assembly to add.

  • bstrAssemblyName
    Type: System.String

    Strong name of the asembly.

Return Value

Type: System.Object
The path of the assembly.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace