次の方法で共有


PropertyCollection.Count プロパティ

このコレクション内のプロパティの数を取得します。

Public Overridable ReadOnly Property Count As Integer  Implements _   ICollection.Count
[C#]
public virtual int Count {get;}
[C++]
public: __property virtual int get_Count();
[JScript]
public function get Count() : int;

プロパティ値

このコレクション内のプロパティの数。

実装

ICollection.Count

例外

例外の種類 条件
NotSupportedException ディレクトリがプロパティ数を報告できません。
COMException 基になるインターフェイスを呼び出すときにエラーが発生しました。

解説

IIS (Internet Information Services) プロバイダおよび WinNT プロバイダは、現在 Count をサポートしていません。そのため、 NotSupportedException がスローされます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

PropertyCollection クラス | PropertyCollection メンバ | System.DirectoryServices 名前空間 | COMException