Compartir a través de


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

'Declaration
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

See Also

Reference

IVsWebFormDesignerSupport Interface

Microsoft.VisualStudio.TextManager.Interop Namespace