다음을 통해 공유


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
‘사용 방법
Dim instance As IVsWebFormDesignerSupport
Dim pszReference As String
Dim returnValue As Integer

returnValue = instance.AddReference(pszReference)
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

IVsWebFormDesignerSupport Members

Microsoft.VisualStudio.TextManager.Interop Namespace