Serialization.ISurrogateProvider.Handles Method

Definition

Determine whether this surrogate provider handles this type.

public bool Handles (Type type, System.Runtime.Serialization.StreamingContext context, out int priority);
abstract member Handles : Type * System.Runtime.Serialization.StreamingContext * int -> bool
Public Function Handles (type As Type, context As StreamingContext, ByRef priority As Integer) As Boolean

Parameters

type
Type

The query type.

context
StreamingContext

The serialization context.

priority
Int32

The priority of this provider.

Returns

True if this provider handles this type, false otherwise.

Applies to