Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Adds a reference to the specified page.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
'Déclaration
Function AddReference ( _
pszReference As String _
) As Integer
int AddReference(
string pszReference
)
int AddReference(
[InAttribute] String^ pszReference
)
abstract AddReference :
pszReference:string -> int
function AddReference(
pszReference : String
) : int
Parameters
- pszReference
Type: System.String
[in] A string containing the full path to the web page to add.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT IVsWebFormDesignerSupport::AddReference(
[in] LPCWSTR pszReference
);
.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.