Version

VerifyBinaryFormatterEnabled Method

Indicates if the BinaryFormatter can be used within the application.
Syntax
'Declaration
 
Public Shared Function VerifyBinaryFormatterEnabled( _
   Optional ByVal forceSilentFail As Boolean _
) As Boolean
public static bool VerifyBinaryFormatterEnabled( 
   bool forceSilentFail
)

Parameters

forceSilentFail

Return Value

Returns true on .NET Framework, and NetCore applications where the EnableUnsafeBinaryFormatterSerialization flag is true, and in the case of .NET9, when the formatting package is referenced. See https://aka.ms/binaryformatter
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also