PersonalizationStateQuery.Item[String] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定查詢參數的值。
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
參數
- queryKey
- String
一個不區分大小寫的查詢字串。 該值應為以下之一:「PathToMatch」、「UserInactiveSinceDate」或「UsernameToMatch」。
屬性值
查詢參數的值由參數 queryKey 表示。
例外狀況
queryKey 是 null。
備註
此屬性是該類別的預設索引器 PersonalizationStateQuery 。 它會回傳以 為 queryKey的查詢參數值。 你可以使用 PersonalizationStateQuery.this["UsernameToMatch"]、 PersonalizationStateQuery.this["PathToMatch"] 和 PersonalizationStateQuery.this["UserInactiveSinceDate"] 分別設定 UsernameToMatch、 PathToMatch和 UserInactiveSinceDate 屬性。 當這三個屬性在索引器中設定後,會根據適當的類型進行驗證。
若null不存在,則此性質會回傳queryKey。