語言

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 屬性。

適用於