Adds a reference to this container.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function Add ( _
bstrPath As String _
) As Reference
'使用
Dim instance As OAReferences
Dim bstrPath As String
Dim returnValue As Reference
returnValue = instance.Add(bstrPath)
public Reference Add(
string bstrPath
)
public:
virtual Reference^ Add(
String^ bstrPath
) sealed
public final function Add(
bstrPath : String
) : Reference
Parameters
bstrPath
Type: System.StringThe path of the file represented by the reference.
Return Value
Type: VSLangProj.Reference
The added Reference.
Implements
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.