IVsDebugger.ToggleBreakpointByName Method
Toggle a breakpoint at a named location in the program, such as a function name.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
‘선언
Function ToggleBreakpointByName ( _
ByRef guidLanguage As Guid, _
pszCodeLocationText As String _
) As Integer
‘사용 방법
Dim instance As IVsDebugger
Dim guidLanguage As Guid
Dim pszCodeLocationText As String
Dim returnValue As Integer
returnValue = instance.ToggleBreakpointByName(guidLanguage, _
pszCodeLocationText)
int ToggleBreakpointByName(
ref Guid guidLanguage,
string pszCodeLocationText
)
int ToggleBreakpointByName(
[InAttribute] Guid% guidLanguage,
[InAttribute] String^ pszCodeLocationText
)
abstract ToggleBreakpointByName :
guidLanguage:Guid byref *
pszCodeLocationText:string -> int
function ToggleBreakpointByName(
guidLanguage : Guid,
pszCodeLocationText : String
) : int
Parameters
- guidLanguage
Type: System.Guid%
[in] The GUID for the language service such as SID_SVisualBasicLangService.
- pszCodeLocationText
Type: System.String
[in] String containing the name of the location to toggle the breakpoint.
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 vsshell.idl:
HRESULT IVsDebugger::ToggleBreakpointByName(
[in] REFGUID guidLanguage,
[in] LPCOLESTR pszCodeLocationText
);
.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.