PropertyDataCollection.PropertyDataEnumeratorとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PropertyDataCollection.PropertyDataEnumeratorの意味・解説 

PropertyDataCollection.PropertyDataEnumerator クラス

PropertyDataCollection 内の PropertyData オブジェクト列挙子を表します

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Class PropertyDataEnumerator
    Implements IEnumerator
Dim instance As PropertyDataEnumerator
public class PropertyDataEnumerator : IEnumerator
public ref class PropertyDataEnumerator : IEnumerator
public class PropertyDataEnumerator implements
 IEnumerator
public class PropertyDataEnumerator implements
 IEnumerator
使用例使用例

Win32_LogicalDisk クラスプロパティ列挙する例を次に示します

Imports System
Imports System.Management

' This sample demonstrates how to
' enumerate all properties in a
' ManagementObject using
' PropertyDataEnumerator object.
Class Sample_PropertyDataEnumerator
    Public Overloads Shared
 Function _
        Main(ByVal args() As String)
 As Integer
        Dim disk As New
 ManagementObject( _
            "Win32_LogicalDisk.DeviceID='C:'")
        Dim propertyEnumerator As _
          PropertyDataCollection.PropertyDataEnumerator _
              = disk.Properties.GetEnumerator()
        While propertyEnumerator.MoveNext()
            Dim p As PropertyData = _
                CType(propertyEnumerator.Current, PropertyData)
            Console.WriteLine("Property found: " &
 p.Name)
        End While
        Return 0
    End Function
End Class
using System; 
using System.Management; 

// This sample demonstrates how to
// enumerate all properties in a 
// ManagementObject using the
// PropertyDataEnumerator object.
class Sample_PropertyDataEnumerator 
{
    public static int Main(string[]
 args) 
    { 
        ManagementObject disk = new 
            ManagementObject("Win32_LogicalDisk.DeviceID='C:'");
        PropertyDataCollection.PropertyDataEnumerator
            propertyEnumerator = disk.Properties.GetEnumerator();
        while(propertyEnumerator.MoveNext()) 
        {
            PropertyData p = 
                (PropertyData)propertyEnumerator.Current;
            Console.WriteLine("Property found: " + p.Name);
        }
        return 0;
    }
}
継承階層継承階層
System.Object
  System.Management.PropertyDataCollection.PropertyDataEnumerator
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PropertyDataCollection.PropertyDataEnumerator メンバ
System.Management 名前空間

PropertyDataCollection.PropertyDataEnumerator プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Current PropertyDataCollection 列挙体の現在の PropertyData を取得します
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.IEnumerator.Current コレクション内の現在のオブジェクト取得します
参照参照

関連項目

PropertyDataCollection.PropertyDataEnumerator クラス
System.Management 名前空間

PropertyDataCollection.PropertyDataEnumerator メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

PropertyDataCollection.PropertyDataEnumerator クラス
System.Management 名前空間

PropertyDataCollection.PropertyDataEnumerator メンバ

PropertyDataCollection 内の PropertyData オブジェクト列挙子を表します

PropertyDataCollection.PropertyDataEnumerator データ型公開されるメンバを以下の表に示します


パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Current PropertyDataCollection 列挙体の現在の PropertyData取得します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイス実装
  名前 説明
インターフェイスの明示的な実装 System.Collections.IEnumerator.Current コレクション内の現在のオブジェクト取得します
参照参照

関連項目

PropertyDataCollection.PropertyDataEnumerator クラス
System.Management 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からPropertyDataCollection.PropertyDataEnumeratorを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPropertyDataCollection.PropertyDataEnumeratorを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPropertyDataCollection.PropertyDataEnumerator を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PropertyDataCollection.PropertyDataEnumerator」の関連用語

PropertyDataCollection.PropertyDataEnumeratorのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PropertyDataCollection.PropertyDataEnumeratorのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS