OutputCache.Serialize(Stream, Object) Method

Definition

Serializes output-cache data into binary data.

C#
public static void Serialize(System.IO.Stream stream, object data);

Parameters

stream
Stream

The object to contain the serialized binary data.

data
Object

The output-cache data to serialize.

Exceptions

data is not one of the specified output-cache types.

data is null or stream is null.

Remarks

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

Applies to

Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1