OAReferences.Add Method
Adds a reference to this container.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Automation
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Function Add ( _
bstrPath As String _
) As Reference
'Usage
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
abstract Add :
bstrPath:string -> Reference
override Add :
bstrPath:string -> Reference
Parameters
- bstrPath
Type: System.String
The path of the file represented by the reference
Return Value
Type: VSLangProj.Reference
Implements
.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.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace