Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds a reference to a file.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
Function AddReferenceToFileEx ( _
Path As String, _
<OutAttribute> ByRef created As Boolean _
) As Object
Object AddReferenceToFileEx(
string Path,
out bool created
)
Object^ AddReferenceToFileEx(
[InAttribute] String^ Path,
[OutAttribute] bool% created
)
abstract AddReferenceToFileEx :
Path:string *
created:bool byref -> Object
function AddReferenceToFileEx(
Path : String,
created : boolean
) : Object
Parameters
- Path
Type: System.String
Path to the file.
- created
Type: System.Boolean%
When this method returns, contains true if the reference is created; otherwise, false. This parameter is passed uninitialized.
Return Value
Type: System.Object
A reference to a file.
Remarks
An exception is thrown if a file reference cannot be found.
This method is the same as the AddReferenceToFile method, but includes the created parameter to support interoperability.
.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.