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 物件。

傳回

存放區中項目的整數計數。

適用於