PersonalizableAttribute.GetPersonalizableProperties(Type) 方法

定義

傳回符合參數型別並標示為可個人化之屬性的 PropertyInfo 物件集合。

public:
 static System::Collections::ICollection ^ GetPersonalizableProperties(Type ^ type);
public static System.Collections.ICollection GetPersonalizableProperties (Type type);
static member GetPersonalizableProperties : Type -> System.Collections.ICollection
Public Shared Function GetPersonalizableProperties (type As Type) As ICollection

參數

type
Type

在此尋找 Personalizable 屬性的型別。

傳回

可個人化屬性的 ICollection

例外狀況

在型別上的公用屬性標示為可個人化但唯讀。

備註

這個方法會傳回包含零個或多個 PropertyInfo 物件的集合,集合中每個指定為可個人化的型別屬性都有一個物件,其中 IsPersonalizable 等於 true

參數 type 是要在其中尋找 Personalizable 屬性的類型。 例如,您會傳入 "typeof(MyWebPart)" 以取得 Personalizable 類別上的 MyWebPart 屬性。

適用於