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

适用于