バージョン

VerifyBinaryFormatterEnabled メソッド

BinaryFormatter をアプリケーション内で使用できるかどうかを示します。
シンタックス
'宣言
 
Public Shared Function VerifyBinaryFormatterEnabled( _
   Optional ByVal forceSilentFail As Boolean _
) As Boolean
public static bool VerifyBinaryFormatterEnabled( 
   bool forceSilentFail
)

パラメータ

forceSilentFail

戻り値の型

.NET Framework、NetCore (EnableUnsafeBinaryFormatterSerialization が有効な場合)、および .NET 9 (フォーマッティングパッケージが参照されている場合) で true を返します。https://aka.ms/binaryformatter を参照してください。
参照