Adds an assembly (.NET) reference to the selected project.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
声明
Function AddAssemblyReference ( _
bstrRef As String _
) As Object
用法
Dim instance As VCReferences
Dim bstrRef As String
Dim returnValue As Object
returnValue = instance.AddAssemblyReference(bstrRef)
Object AddAssemblyReference(
string bstrRef
)
Object^ AddAssemblyReference(
[InAttribute] String^ bstrRef
)
function AddAssemblyReference(
bstrRef : String
) : Object
Parameters
bstrRef
Type: System.StringA string representing the path of the assembly to add.
Return Value
Type: System.Object
The path of the assembly.
Permissions
- 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.