Udostępnij za pośrednictwem


Context.Item Property

Gets or sets the value associated with the specified key.

Namespace: Microsoft.Uii.Csr
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Usage

'Usage
Dim instance As Context
Dim key As String
Dim value As String

value = instance(key)

instance(key) = value

Syntax

'Declaration
Public Default Property Item ( _
    key As String _
) As String
public string this [
    string key
] { get; set; }
public:
virtual property String^ default [String^] {
    String^ get (String^ key) sealed;
    void set (String^ key, String^ value) sealed;
}
/** @property */
public final String get_Item (String key)

/** @property */
public final void set_Item (String key, String value)

Parameters

  • key
    Specifies the key

Property Value

Type: String

Remarks

If the key is missing than null is returned.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

Context Class
Context Members
Microsoft.Uii.Csr Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.