語言

PropertyConverter 類別

定義

包含輔助函式,可將屬性值轉換成字串與字串之間。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class PropertyConverter sealed
public ref class PropertyConverter abstract sealed
public sealed class PropertyConverter
public static class PropertyConverter
type PropertyConverter = class
Public NotInheritable Class PropertyConverter
Public Class PropertyConverter
繼承
PropertyConverter

備註

PropertyConverter 類別是 ASP.NET 頁框架使用的,並非設計用來直接從你的程式碼存取。 你可以用這個 Enum 結構來轉換字串值到列舉 TypeConverter 器或物件之間。

方法

名稱 Description
EnumFromString(Type, String)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

將字串表示法轉換為指定的列舉類型的值。

EnumToString(Type, Object)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

將指定的列舉類型的值轉換為其等價的字串表示。

ObjectFromString(Type, MemberInfo, String)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

將字串值轉換為指定的物件型別。

適用於