FormatterConverter 類別

定義

警告

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

表示 IFormatterConverter 介面的基底實作,該介面使用 Convert 類別和 IConvertible 介面。

public ref class FormatterConverter : System::Runtime::Serialization::IFormatterConverter
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
[System.Runtime.InteropServices.ComVisible(true)]
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
type FormatterConverter = class
    interface IFormatterConverter
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type FormatterConverter = class
    interface IFormatterConverter
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormatterConverter = class
    interface IFormatterConverter
Public Class FormatterConverter
Implements IFormatterConverter
繼承
FormatterConverter
屬性
實作

建構函式

FormatterConverter()
已淘汰.

初始化 FormatterConverter 類別的新執行個體。

方法

Convert(Object, Type)
已淘汰.

將值轉換為指定的 Type

Convert(Object, TypeCode)
已淘汰.

將值轉換為指定的 TypeCode

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
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)
ToString(Object)
已淘汰.

將指定物件轉換為 String

ToUInt16(Object)
已淘汰.

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

ToUInt32(Object)
已淘汰.

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

ToUInt64(Object)
已淘汰.

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

適用於