IVsFinder.SetPosition Method
Sets search positions
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣告
Function SetPosition ( _
fp As UInteger, _
ta As TextAddress _
) As Integer
'用途
Dim instance As IVsFinder
Dim fp As UInteger
Dim ta As TextAddress
Dim returnValue As Integer
returnValue = instance.SetPosition(fp, _
ta)
int SetPosition(
uint fp,
TextAddress ta
)
int SetPosition(
[InAttribute] unsigned int fp,
[InAttribute] TextAddress ta
)
abstract SetPosition :
fp:uint32 *
ta:TextAddress -> int
function SetPosition(
fp : uint,
ta : TextAddress
) : int
Parameters
- fp
Type: System.UInt32
[in] Search position. Values re taken from the __VSFINDPOS enum.
- ta
Type: Microsoft.VisualStudio.TextManager.Interop.TextAddress
[in]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textfind.idl:
HRESULT IVsFinder::SetPosition(
[in] VSFINDPOS fp,
[in] TextAddress ta
);
.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.