Adds a reference to a file.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
声明
Function AddReferenceToFile ( _
Path As String _
) As Object
用法
Dim instance As VCReferences
Dim Path As String
Dim returnValue As Object
returnValue = instance.AddReferenceToFile(Path)
Object AddReferenceToFile(
string Path
)
Object^ AddReferenceToFile(
[InAttribute] String^ Path
)
function AddReferenceToFile(
Path : String
) : Object
Parameters
Path
Type: System.StringPath to the file.
Return Value
Type: System.Object
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.