PersonalizationStateQuery.Item[String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- queryKey
- String
A case-insensitive query string. The value should be one of the following: "PathToMatch", "UserInactiveSinceDate", or "UsernameToMatch".
Property Value
The value of the query parameter indicated by the queryKey
parameter.
Exceptions
queryKey
is null
.
queryKey
is an empty string ("").
-or-
When trimmed, queryKey
results in an empty string.
-or-
A value provided for one of the three properties on PersonalizationStateQuery was of the wrong type.
Remarks
This property is the default indexer for the PersonalizationStateQuery class. It returns the value of the query parameter indicated by queryKey
. You can use PersonalizationStateQuery.this["UsernameToMatch"]
, PersonalizationStateQuery.this["PathToMatch"]
and PersonalizationStateQuery.this["UserInactiveSinceDate"]
to set the UsernameToMatch, PathToMatch, and UserInactiveSinceDate properties, respectively. When these three properties are set in the indexer, they are validated against the proper type.
This property returns null
if queryKey
does not exist.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기