Breakpoint2.FilterBy 속성

정의

중단점이 설정된 조건을 가져오거나 설정합니다.

public:
 property System::String ^ FilterBy { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ FilterBy { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(1107)]
public string FilterBy { [System.Runtime.InteropServices.DispId(1107)] get; [System.Runtime.InteropServices.DispId(1107)] set; }
[<System.Runtime.InteropServices.DispId(1107)>]
[<get: System.Runtime.InteropServices.DispId(1107)>]
[<set: System.Runtime.InteropServices.DispId(1107)>]
member this.FilterBy : string with get, set
Public Property FilterBy As String

속성 값

중단점이 설정된 조건이 들어 있는 문자열입니다.

특성

예제

다음 예제에서는 사용 하는 방법에 설명 합니다 FilterBy 속성입니다.

public static void FilterBy(EnvDTE80.DTE2 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("FilterBy Property Test");  
    owp.Activate();  

     EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;  
    debugger.Breakpoints.Add("", "Target001.cs", 15, 1, "",  
        EnvDTE.dbgBreakpointConditionType.dbgBreakpointConditionTypeWhenTrue, "C#", "", 0, "", 0,  
        EnvDTE.dbgHitCountType.dbgHitCountTypeNone);  
    EnvDTE80.Breakpoint2 b2 = (EnvDTE80.Breakpoint2)debugger.Breakpoints.Item(1);  
    b2.FilterBy = "MachineName == " + "MyMachine" + " & " +  
                  "ProcessID == " + "1000" + " & " +  
                  "ProcessName == " + "NewProcess";  
    string strFilterBy = b2.FilterBy.ToString();  

    owp.OutputString(strFilterBy + "\n");  
}  

설명

중단점이 설정된 하나 이상의 조건을 지정할 수 있습니다. &(AND), || 사용(OR), ! (NOT) 및 괄호를 사용하여 다음 절을 결합합니다.

MachineName == "machine"

ProcessID == 123

ProcessName = "process"

ThreadID = 123

ThreadName = "thread"

조건이 지정되지 않은 경우 중단점은 모든 컴퓨터의 모든 프로세스 및 스레드에서 설정됩니다.

적용 대상