PersonalizationDictionary.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 an entry in the personalization dictionary.
public:
virtual property System::Web::UI::WebControls::WebParts::PersonalizationEntry ^ default[System::String ^] { System::Web::UI::WebControls::WebParts::PersonalizationEntry ^ get(System::String ^ key); void set(System::String ^ key, System::Web::UI::WebControls::WebParts::PersonalizationEntry ^ value); };
public virtual System.Web.UI.WebControls.WebParts.PersonalizationEntry this[string key] { get; set; }
member this.Item(string) : System.Web.UI.WebControls.WebParts.PersonalizationEntry with get, set
Default Public Overridable Property Item(key As String) As PersonalizationEntry
Parameters
- key
- String
The key of the entry to be retrieved or changed.
Property Value
A PersonalizationEntry representing custom personalization information identified by the key
parameter.
Exceptions
key
is null
.
key
is either an empty string (""), or trimming key
results in an empty string.
Remarks
This property works with a PersonalizationEntry object representing custom personalization information that is identified by the key
parameter. If there is no value for key
, null
is returned.
If key
does not already exist, then key
(and its associated value) are added to the dictionary.
Note that you can add a null value to the dictionary, and the indexer can also be used to update the personalization value.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om