Breakpoint.FunctionLineOffset Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Indica o deslocamento de linha do nome de um ponto de interrupção de função.
public:
property int FunctionLineOffset { int get(); };
public:
property int FunctionLineOffset { int get(); };
[System.Runtime.InteropServices.DispId(103)]
public int FunctionLineOffset { [System.Runtime.InteropServices.DispId(103)] get; }
[<System.Runtime.InteropServices.DispId(103)>]
[<get: System.Runtime.InteropServices.DispId(103)>]
member this.FunctionLineOffset : int
Public ReadOnly Property FunctionLineOffset As Integer
Valor da propriedade
Um valor inteiro que representa o deslocamento de linha do nome de um ponto de interrupção de função.
- Atributos
Exemplos
O exemplo a seguir demonstra como usar a FunctionLineOffset propriedade.
public static void FunctionLineOffset(DTE dte)
{
// Setup debug Output window.
Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
w.Visible = true;
OutputWindow ow = (OutputWindow)w.Object;
OutputWindowPane owp = ow.OutputWindowPanes.Add("FunctionLineOffset Property Test: ");
owp.Activate();
EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;
owp.OutputString("\n FunctionColumnOffset: " +
debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString());
owp.OutputString("\n FunctionLineOffset: " +
debugger.Breakpoints.Item(1).FunctionLineOffset.ToString());
}
Shared Sub FunctionLineOffset(ByRef dte As EnvDTE.DTE)
MessageBox.Show("FunctionColumnOffset: " + _
dte.Debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString())
MessageBox.Show("FunctionLineOffset: " + _
dte.Debugger.Breakpoints.Item(1).FunctionLineOffset.ToString())
End Sub
Comentários
Dependendo do mecanismo, isso pode não funcionar corretamente no idioma nativo.