ModifierKeysValueSerializer 類別

定義

String 執行個體轉換為 ModifierKeys 執行個體,以及反向操作。Converts instances of String to and from instances of ModifierKeys.

public ref class ModifierKeysValueSerializer : System::Windows::Markup::ValueSerializer
public class ModifierKeysValueSerializer : System.Windows.Markup.ValueSerializer
type ModifierKeysValueSerializer = class
    inherit ValueSerializer
Public Class ModifierKeysValueSerializer
Inherits ValueSerializer
繼承
ModifierKeysValueSerializer

備註

此類別通常僅供MarkupWriter用於序列化目的使用。This class is typically only utilized by the MarkupWriter for serialization purposes.

建構函式

ModifierKeysValueSerializer()

初始化 ModifierKeysValueSerializer 類別的新執行個體。Initializes a new instance of the ModifierKeysValueSerializer class.

方法

CanConvertFromString(String, IValueSerializerContext)

判斷指定的 String 是否可以轉換為 ModifierKeys 的執行個體。Determines if the specified String can be convert to an instance of ModifierKeys.

CanConvertToString(Object, IValueSerializerContext)

判斷指定的 ModifierKeys 是否能夠轉換為 StringDetermines if the specified ModifierKeys can be converted to a String.

ConvertFromString(String, IValueSerializerContext)

String 轉換成 ModifierKeys 值。Converts a String into a ModifierKeys value.

ConvertToString(Object, IValueSerializerContext)

ModifierKeys 的執行個體轉換成 StringConverts an instance of ModifierKeys to a String.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetConvertFromException(Object)

無法執行轉換時,會傳回要擲回的例外狀況。Returns an exception to throw when a conversion cannot be performed.

(繼承來源 ValueSerializer)
GetConvertToException(Object, Type)

無法執行轉換時,會傳回要擲回的例外狀況。Returns an exception to throw when a conversion cannot be performed.

(繼承來源 ValueSerializer)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
TypeReferences(Object, IValueSerializerContext)

取得 ValueSerializer 所參考之型別的列舉型別 (Enumeration)。Gets an enumeration of the types referenced by the ValueSerializer.

(繼承來源 ValueSerializer)

適用於

另請參閱