OutputCache.Deserialize Method (Stream)

.NET Framework (current version)
 

Deserializes a binary object into output-cache data.

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

[SecurityPermissionAttribute(SecurityAction.Assert, Flags = SecurityPermissionFlag.SerializationFormatter)]
public static object Deserialize(
	Stream stream
)

Parameters

stream
Type: System.IO.Stream

The data to deserialize.

Return Value

Type: System.Object

An object that contains the deserialized data.

Exception Condition
ArgumentException

The deserialized object that is returned by the method is not a valid output-cache type.

ArgumentNullException

stream is null.

This method is used by output-cache providers that are operating under partial trust.

.NET Framework
Available since 4.0
Return to top
Show: