IVsWebFormDesignerSupport.AddReference Method
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
声明
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.