Share via


AttachablePropertyServices.GetAttachedPropertyCount(Object) 方法

定义

返回指定存储中可附加属性条目的计数。

public:
 static int GetAttachedPropertyCount(System::Object ^ instance);
public static int GetAttachedPropertyCount (object instance);
static member GetAttachedPropertyCount : obj -> int
Public Shared Function GetAttachedPropertyCount (instance As Object) As Integer

参数

instance
Object

实现 IAttachedPropertyStore 的特定可附加属性存储;或者是任意不为 null 的对象,用于访问静态默认可附加属性存储。

返回

存储中条目的整数计数。

适用于