PersonalizableAttribute.GetPersonalizableProperties(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一組 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 屬性。