Share via


ScriptEditorControl.. Method

Replaces the control.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors.VS (in SQLEditors.VS.dll)

Syntax

'Declaration
Private Function Replace ( _
    pszSearch As String, _
    pszReplace As String, _
    grfOptions As UInteger, _
    fResetStartPoint As Integer, _
    pHelper As IVsFindHelper, _
    <OutAttribute> ByRef replaced As Integer _
) As Integer Implements IVsFindTarget.Replace
'Usage
Dim instance As ScriptEditorControl
Dim pszSearch As String
Dim pszReplace As String
Dim grfOptions As UInteger
Dim fResetStartPoint As Integer
Dim pHelper As IVsFindHelper
Dim replaced As Integer
Dim returnValue As Integer

returnValue = CType(instance, IVsFindTarget).Replace(pszSearch, _
    pszReplace, grfOptions, fResetStartPoint, _
    pHelper, replaced)
int IVsFindTarget.Replace(
    string pszSearch,
    string pszReplace,
    uint grfOptions,
    int fResetStartPoint,
    IVsFindHelper pHelper,
    out int replaced
)
private:
virtual int Replace(
    String^ pszSearch, 
    String^ pszReplace, 
    unsigned int grfOptions, 
    int fResetStartPoint, 
    IVsFindHelper^ pHelper, 
    [OutAttribute] int% replaced
) sealed = IVsFindTarget::Replace
private abstract Replace : 
        pszSearch:string * 
        pszReplace:string * 
        grfOptions:uint32 * 
        fResetStartPoint:int * 
        pHelper:IVsFindHelper * 
        replaced:int byref -> int 
private override Replace : 
        pszSearch:string * 
        pszReplace:string * 
        grfOptions:uint32 * 
        fResetStartPoint:int * 
        pHelper:IVsFindHelper * 
        replaced:int byref -> int 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

  • pszSearch
    Type: System.String
    A string value that identifies the control to find.
  • pszReplace
    Type: System.String
    A string value that identifies the control to replace.
  • fResetStartPoint
    Type: System.Int32
    An integer value that specifies the reset start point.
  • pHelper
    Type: IVsFindHelper
    A IVsFindHelper object.
  • replaced
    Type: System.Int32%
    A reference to the control replaced.

Return Value

Type: System.Int32
An integer value that indicates the result of the operation.

Implements

IVsFindTargetReplace(String, String, UInt32, Int32, IVsFindHelper, Int32%)