PersonalizationDictionary.Item[String] Property
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
- key
- String
The key of the entry to be retrieved or changed.
A PersonalizationEntry representing custom personalization information identified by the key
parameter.
key
is null
.
key
is either an empty string (""), or trimming key
results in an empty string.
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.
Продукт | Версії |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: