OutputCacheProviderAsync::AddAsync Method (String^, Object^, DateTime)

 

Asynchronously inserts the specified entry into the output cache.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

public:
virtual Task<Object^>^ AddAsync(
	String^ key,
	Object^ entry,
	DateTime utcExpiry
) abstract

Parameters

key
Type: System::String^

A unique identifier for entry.

entry
Type: System::Object^

The content to add to the output cache.

utcExpiry
Type: System::DateTime

The time and date on which the cached entry expires.

Return Value

Type: System.Threading.Tasks::Task<Object^>^

The specified entry.

.NET Framework
Available since 4.6.2
Return to top
Show: