Compartilhar via


HostedWebApplication.UpdateContextValue Method (String, String)

Accepts a name and value pair and adds or updates it if it currently exists to the current context. This is public so it can be called via scripts as well.

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

Usage

'Usage
Dim instance As HostedWebApplication
Dim name As String
Dim val As String

instance.UpdateContextValue(name, val)

Syntax

'Declaration
Public Sub UpdateContextValue ( _
    name As String, _
    val As String _
)
public void UpdateContextValue (
    string name,
    string val
)
public:
void UpdateContextValue (
    String^ name, 
    String^ val
)
public void UpdateContextValue (
    String name, 
    String val
)
public function UpdateContextValue (
    name : String, 
    val : String
)

Parameters

  • name
    Key (name) of the context item to update.
  • val
    Value of the context item to update.

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

HostedWebApplication Class
HostedWebApplication Members
Microsoft.Uii.Csr Namespace

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