Delen via


SelectStringCommand.Context Property

Definition

Gets or sets the number of context lines to collect. If set to a single integer value N, collects N lines each of pre- and post- context. If set to a 2-tuple B,A, collects B lines of pre- and A lines of post- context. If set to a list with more than 2 elements, the excess elements are ignored.

public:
 property cli::array <int> ^ Context { cli::array <int> ^ get(); void set(cli::array <int> ^ value); };
public:
 property Platform::Array <int> ^ Context { Platform::Array <int> ^ get(); void set(Platform::Array <int> ^ value); };
public int[] Context { get; set; }
[System.Management.Automation.Parameter]
[System.Management.Automation.ValidateCount(1, 2)]
[System.Management.Automation.ValidateNotNullOrEmpty]
[System.Management.Automation.ValidateRange(0, 2147483647)]
public int[] Context { get; set; }
member this.Context : int[] with get, set
[<System.Management.Automation.Parameter>]
[<System.Management.Automation.ValidateCount(1, 2)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
[<System.Management.Automation.ValidateRange(0, 2147483647)>]
member this.Context : int[] with get, set
Public Property Context As Integer()

Property Value

Int32[]
Attributes

Applies to