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
'Declaration
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: StringA string representing the path of the assembly.
bstrAssemblyName
Type: StringStrong name of the assembly.
Return Value
Type: Boolean
true if the assembly reference can be added, false if it cannot.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.