Share via


IContextAccessor.GetObject Method

Retrieves the object that is associated with the specified key.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Syntax

'Declaration
Function GetObject ( _
    key As String _
) As Object
Object GetObject(
    string key
)
Object^ GetObject(
    String^ key
)
abstract GetObject : 
        key:string -> Object
function GetObject(
    key : String
) : Object

Parameters

  • key
    Type: String

    A string that represents the key for the value to retrieve.

Return Value

Type: Object
The retrieved object value.

.NET Framework Security

See Also

Reference

IContextAccessor Interface

Microsoft.VisualStudio.TestTools.Execution Namespace