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
'Declaration
Function AddAssemblyReference ( _
bstrRef As String _
) As Object
Object AddAssemblyReference(
string bstrRef
)
Object^ AddAssemblyReference(
[InAttribute] String^ bstrRef
)
abstract AddAssemblyReference :
bstrRef:string -> Object
function AddAssemblyReference(
bstrRef : String
) : Object
Parameters
bstrRef
Type: StringA string representing the path of the assembly to add.
Return Value
Type: Object
The path of the assembly.
.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.