IFormatterConverter 介面

定義

警告

Formatter-based serialization is obsolete and should not be used.

重要

此 API 不符合 CLS 規範。

提供 SerializationInfo 執行個體 (Instance) 和格式子提供類別之間的連接,最適用於在 SerializationInfo 中剖析資料。

public interface class IFormatterConverter
[System.CLSCompliant(false)]
public interface IFormatterConverter
[System.CLSCompliant(false)]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface IFormatterConverter
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public interface IFormatterConverter
[<System.CLSCompliant(false)>]
type IFormatterConverter = interface
[<System.CLSCompliant(false)>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type IFormatterConverter = interface
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IFormatterConverter = interface
Public Interface IFormatterConverter
衍生
屬性

方法

Convert(Object, Type)
已淘汰.

將值轉換為指定的 Type

Convert(Object, TypeCode)
已淘汰.

將值轉換為指定的 TypeCode

ToBoolean(Object)
已淘汰.

將值轉換成 Boolean

ToByte(Object)
已淘汰.

將值轉換為 8 位元的不帶正負號整數 (Unsigned Integer)。

ToChar(Object)
已淘汰.

將值轉換為 Unicode 字元。

ToDateTime(Object)
已淘汰.

將值轉換成 DateTime

ToDecimal(Object)
已淘汰.

將值轉換成 Decimal

ToDouble(Object)
已淘汰.

將值轉換為雙精度浮點數。

ToInt16(Object)
已淘汰.

將值轉換為 16 位元帶正負號的整數。

ToInt32(Object)
已淘汰.

將值轉換為 32 位元帶正負號的整數。

ToInt64(Object)
已淘汰.

將值轉換為 64 位元帶正負號的整數。

ToSByte(Object)
已淘汰.

將值轉換成 SByte

ToSingle(Object)
已淘汰.

將值轉換為單精確度浮點數。

ToString(Object)
已淘汰.

將值轉換成 String

ToUInt16(Object)
已淘汰.

將值轉換為 16 位元不帶正負號的整數。

ToUInt32(Object)
已淘汰.

將值轉換為 32 位元不帶正負號的整數。

ToUInt64(Object)
已淘汰.

將值轉換為 64 位元不帶正負號的整數。

適用於