System.Runtime.Serialization.FormatterServices.CheckTypeSecurity Method

Determines whether the specified Type can be deserialized with the System.Runtime.Serialization.Formatters.TypeFilterLevel property set to Low.

Syntax

public static void CheckTypeSecurity (Type t, System.Runtime.Serialization.Formatters.TypeFilterLevel securityLevel)

Parameters

t
The Type to check for the ability to deserialize.
securityLevel
The System.Runtime.Serialization.Formatters.TypeFilterLevel property value.

Remarks

Use this method to determine whether a specified type can be deserialized when the System.Runtime.Serialization.Formatters.TypeFilterLevel property is set to Low.

.NET Framework remoting provides two levels of automatic deserialization, System.Runtime.Serialization.Formatters.TypeFilterLevel.Low and System.Runtime.Serialization.Formatters.TypeFilterLevel.Full. System.Runtime.Serialization.Formatters.TypeFilterLevel.Low helps protect against deserialization attacks by deserializing only the types associated with the most basic remoting functionality. The System.Runtime.Serialization.Formatters.TypeFilterLevel.Full deserialization level supports automatic deserialization of all types that remoting supports in all situations. For more information about the.NET Framework remoting types that System.Runtime.Serialization.Formatters.TypeFilterLevel.Low and System.Runtime.Serialization.Formatters.TypeFilterLevel.Full support, see [<topic://cpconAutomaticDeserializationInNETRemoting>].

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0