AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This class is used to store state data used by the SDK that is scoped within the .NET Task that is calling the SDK.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.SDKTaskContext

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public class SDKTaskContext

The SDKTaskContext type exposes the following members

Constructors

NameDescription
Public Method SDKTaskContext()

Properties

NameTypeDescription
Public Property Static Property Default Amazon.Runtime.SDKTaskContext

The default instance of the Amazon.Runtime.SDKTaskContext used by the SDK.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method Get(string)

Retrieve the value identified by the key from the current Task context.

Public Method Set(string, object)

Store the value identified by the key in the current Task context.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer