다음을 통해 공유


Count Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The CountProperty indicates the number of items in a list or collection.

구문

object.Count [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list

  • value
    A long value that specifies the number of items in a list or collection.

Data Type

Long

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetCount(LPLONG plConnectionID);

주의

The Count property is modified when items are added or removed from a collection or list, or when the Refresh method retrieves new values from an instance of Microsoft SQL Server. The property always reflects the number of items currently in the collection or list.

Applies To:

All collections and lists.