OAReferences.Add Method

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.String

    The path of the file represented by the reference.

Return Value

Type: VSLangProj.Reference

The added Reference.

Implements

References.Add(String)

Permissions

See Also

Reference

OAReferences Class

OAReferences Members

Microsoft.VisualStudio.Package.Automation Namespace