Sdílet prostřednictvím


VCReferences.CanAddAssemblyReferenceWithStrongName Method

Returns a value indicating whether to add the given assembly (.NET) reference by refering to it by its strong name.

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

Syntax

'Deklarace
Function CanAddAssemblyReferenceWithStrongName ( _
    bstrRef As String, _
    bstrAssemblyName As String _
) As Boolean
bool CanAddAssemblyReferenceWithStrongName(
    string bstrRef,
    string bstrAssemblyName
)
bool CanAddAssemblyReferenceWithStrongName(
    [InAttribute] String^ bstrRef, 
    [InAttribute] String^ bstrAssemblyName
)
abstract CanAddAssemblyReferenceWithStrongName : 
        bstrRef:string * 
        bstrAssemblyName:string -> bool 
function CanAddAssemblyReferenceWithStrongName(
    bstrRef : String, 
    bstrAssemblyName : String
) : boolean

Parameters

  • bstrRef
    Type: System.String
    A string representing the path of the assembly.
  • bstrAssemblyName
    Type: System.String
    Strong name of the assembly.

Return Value

Type: System.Boolean
true if the assembly reference can be added, false if it cannot.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace