PersonalizationStateQuery.Item[String] Propriedade

Definição

Obtém ou define o valor do parâmetro de consulta.Gets or sets the value of the query parameter.

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ queryKey); void set(System::String ^ queryKey, System::Object ^ value); };
public object this[string queryKey] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(queryKey As String) As Object

Parâmetros

queryKey
String

Uma cadeia de consulta que não diferencia maiúsculas de minúsculas.A case-insensitive query string. O valor deve ser um dos seguintes: "PathToMatch", "UserInactiveSinceDate" ou "UsernameToMatch".The value should be one of the following: "PathToMatch", "UserInactiveSinceDate", or "UsernameToMatch".

Valor da propriedade

Object

O valor do parâmetro de consulta indicado pelo queryKey parâmetro.The value of the query parameter indicated by the queryKey parameter.

Exceções

queryKey é null.queryKey is null.

queryKey é uma cadeia de caracteres vazia ("").queryKey is an empty string ("").

- ou --or- Quando cortado, queryKey resulta em uma cadeia de caracteres vazia.When trimmed, queryKey results in an empty string.

- ou --or- Um valor fornecido para uma das três propriedades em PersonalizationStateQuery era do tipo errado.A value provided for one of the three properties on PersonalizationStateQuery was of the wrong type.

Comentários

Essa propriedade é o indexador padrão para a PersonalizationStateQuery classe.This property is the default indexer for the PersonalizationStateQuery class. Ele retorna o valor do parâmetro de consulta indicado por queryKey .It returns the value of the query parameter indicated by queryKey. Você pode usar PersonalizationStateQuery.this["UsernameToMatch"] PersonalizationStateQuery.this["PathToMatch"] e PersonalizationStateQuery.this["UserInactiveSinceDate"] para definir as UsernameToMatch Propriedades, PathToMatch , e UserInactiveSinceDate , respectivamente.You can use PersonalizationStateQuery.this["UsernameToMatch"], PersonalizationStateQuery.this["PathToMatch"] and PersonalizationStateQuery.this["UserInactiveSinceDate"] to set the UsernameToMatch, PathToMatch, and UserInactiveSinceDate properties, respectively. Quando essas três propriedades são definidas no indexador, elas são validadas em relação ao tipo apropriado.When these three properties are set in the indexer, they are validated against the proper type.

Essa propriedade retornará null se queryKey não existir.This property returns null if queryKey does not exist.

Aplica-se a