Compartilhar via


VCReferences.AddAssemblyReferenceWithStrongNameEx 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 AddAssemblyReferenceWithStrongNameEx ( _
    bstrRef As String, _
    bstrAssemblyName As String, _
    <OutAttribute> ByRef created As Boolean _
) As Object
Object AddAssemblyReferenceWithStrongNameEx(
    string bstrRef,
    string bstrAssemblyName,
    out bool created
)
Object^ AddAssemblyReferenceWithStrongNameEx(
    [InAttribute] String^ bstrRef, 
    [InAttribute] String^ bstrAssemblyName, 
    [OutAttribute] bool% created
)
abstract AddAssemblyReferenceWithStrongNameEx : 
        bstrRef:string * 
        bstrAssemblyName:string * 
        created:bool byref -> Object
function AddAssemblyReferenceWithStrongNameEx(
    bstrRef : String, 
    bstrAssemblyName : String, 
    created : boolean
) : 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.

  • 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 AddAssemblyReferenceWithStrongName method, but includes the created parameter to support interoperability.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace