Bewerken

Share via


FormatterServices.CheckTypeSecurity(Type, TypeFilterLevel) Method

Definition

Determines whether the specified Type can be deserialized with the TypeFilterLevel property set to Low.

public:
 static void CheckTypeSecurity(Type ^ t, System::Runtime::Serialization::Formatters::TypeFilterLevel securityLevel);
public static void CheckTypeSecurity (Type t, System.Runtime.Serialization.Formatters.TypeFilterLevel securityLevel);
static member CheckTypeSecurity : Type * System.Runtime.Serialization.Formatters.TypeFilterLevel -> unit
Public Shared Sub CheckTypeSecurity (t As Type, securityLevel As TypeFilterLevel)

Parameters

t
Type

The Type to check for the ability to deserialize.

securityLevel
TypeFilterLevel

The TypeFilterLevel property value.

Exceptions

The t parameter is an advanced type and cannot be deserialized when the TypeFilterLevel property is set to Low.

Remarks

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

.NET Framework remoting provides two levels of automatic deserialization, Low and Full. Low helps protect against deserialization attacks by deserializing only the types associated with the most basic remoting functionality. The 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 Low and Full support, see Automatic Deserialization in .NET Framework Remoting.

Applies to

See also