DirectorySearcher.ServerTimeLimit Propriedade
Definição
A propriedade ServerTimeLimit obtém ou define um valor que indica o tempo máximo que o servidor gasta pesquisando.The ServerTimeLimit property gets or sets a value indicating the maximum amount of time the server spends searching. Se o tempo limite for atingido, apenas as entradas encontradas até esse ponto serão retornadas.If the time limit is reached, only entries that are found up to that point are returned.
public:
property TimeSpan ServerTimeLimit { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ServerTimeLimit { get; set; }
[System.DirectoryServices.DSDescription("DSServerTimeLimit")]
public TimeSpan ServerTimeLimit { get; set; }
member this.ServerTimeLimit : TimeSpan with get, set
[<System.DirectoryServices.DSDescription("DSServerTimeLimit")>]
member this.ServerTimeLimit : TimeSpan with get, set
Public Property ServerTimeLimit As TimeSpan
Valor da propriedade
Um TimeSpan que representa o tempo durante o qual o servidor deve pesquisar.A TimeSpan that represents the amount of time that the server should search.
O valor padrão é -1 segundo, o que significa que o padrão de 120 segundos determinado pelo servidor deve ser usado.The default value is -1 seconds, which means to use the server-determined default of 120 seconds.
- Atributos
Comentários
A resolução mínima dessa propriedade é um segundo.The minimum resolution of this property is one second. Frações de segundos são ignoradas.Fractions of seconds are ignored.
Ao contrário da ServerPageTimeLimit propriedade, a ServerTimeLimit propriedade indica a quantidade total de tempo que o servidor gastará em uma pesquisa.Unlike the ServerPageTimeLimit property, the ServerTimeLimit property indicates the total amount of time that the server will spend on a search. Quando o limite de tempo é atingido, o servidor para de Pesquisar e retorna os resultados acumulados até esse ponto.When the time limit is reached, the server stops searching and returns the results that have accumulated up to that point.
Defina ServerTimeLimit como-1 segundo para usar o padrão determinado pelo servidor.Set ServerTimeLimit to -1 second to use the server-determined default.
Observação
Se você definir ServerTimeLimit como um valor maior que o padrão determinado pelo servidor de 120 segundos, o padrão determinado pelo servidor será usado.If you set ServerTimeLimit to a value that is larger than the server-determined default of 120 seconds, the server-determined default is used. Depois que o limite de tempo do servidor for atingido, você não poderá continuar uma pesquisa de onde parou.After the server time limit is reached, you cannot continue a search from where it left off.