ReplicaMetadata.GetItemCount 方法

在派生类中重写时,获取元数据存储区中的项的总数和元数据存储区中已删除项的数目。

命名空间: Microsoft.Synchronization.MetadataStorage
程序集: Microsoft.Synchronization.MetadataStorage(在 microsoft.synchronization.metadatastorage.dll 中)

语法

声明
Public MustOverride Sub GetItemCount ( _
    <OutAttribute> ByRef totalItemCount As UInteger, _
    <OutAttribute> ByRef deletedItemCount As UInteger _
)
用法
Dim instance As ReplicaMetadata
Dim totalItemCount As UInteger
Dim deletedItemCount As UInteger

instance.GetItemCount(totalItemCount, deletedItemCount)
public abstract void GetItemCount (
    out uint totalItemCount,
    out uint deletedItemCount
)
public:
virtual void GetItemCount (
    [OutAttribute] unsigned int% totalItemCount, 
    [OutAttribute] unsigned int% deletedItemCount
) abstract
public abstract void GetItemCount (
    /** @attribute OutAttribute() */ /** @ref */ UInt32 totalItemCount, 
    /** @attribute OutAttribute() */ /** @ref */ UInt32 deletedItemCount
)
JScript does not support passing value-type arguments by reference.

参数

  • totalItemCount
    返回元数据存储区中的项的总数,包括已删除的项。
  • deletedItemCount
    返回元数据存储区中已删除项的数量。

异常

异常类型 条件

ObjectDisposedException

对象已释放或未正确初始化。

请参阅

参考

ReplicaMetadata 类
ReplicaMetadata 成员
Microsoft.Synchronization.MetadataStorage 命名空间