PropertyCollection クラスとは? わかりやすく解説

PropertyCollection クラス

DataColumn、DataSet、または DataTable に追加できるプロパティコレクション表します

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

<SerializableAttribute> _
Public Class PropertyCollection
    Inherits Hashtable
Dim instance As PropertyCollection
[SerializableAttribute] 
public class PropertyCollection : Hashtable
[SerializableAttribute] 
public ref class PropertyCollection : public
 Hashtable
/** @attribute SerializableAttribute() */ 
public class PropertyCollection extends Hashtable
SerializableAttribute 
public class PropertyCollection extends
 Hashtable
解説解説

PropertyCollectionアクセスするには、DataColumnDataSet、または DataTable の各クラスExtendedProperties プロパティ使用します

PropertyCollection使用してDataColumn オブジェクトDataSet オブジェクト、または DataTable オブジェクトカスタム プロパティ追加します。たとえば、後で他のオブジェクト比較するために、オブジェクトの作成時刻格納できます

使用例使用例

DataTableタイムスタンプ値を作成し、それを PropertyCollection追加する例を次に示します

Private Sub AddTimeStamp()
    'Create a new DataTable.
    Dim table As New DataTable("NewTable")

    'Get its PropertyCollection.
    Dim properties As PropertyCollection =
 table.ExtendedProperties

    'Add a timestamp value to the PropertyCollection.
    properties.Add("TimeStamp", DateTime.Now)

    'Print the timestamp.
    Console.WriteLine(properties("TimeStamp"))
End Sub 
private void AddTimeStamp()
{
    //Create a new DataTable.
    DataTable table = new DataTable("NewTable");

    //Get its PropertyCollection.
    PropertyCollection properties = table.ExtendedProperties;

    //Add a timestamp value to the PropertyCollection.
    properties.Add("TimeStamp", DateTime.Now);

    // Print the timestamp.
    Console.WriteLine(properties["TimeStamp"]);
}
継承階層継承階層
System.Object
   System.Collections.Hashtable
    System.Data.PropertyCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PropertyCollection メンバ
System.Data 名前空間
DataColumn クラス
DataSet クラス
DataTable クラス
DataColumn.ExtendedProperties プロパティ
DataSet.ExtendedProperties プロパティ
DataTable.ExtendedProperties プロパティ

PropertyCollection クラス

PropertyCollection クラスは、DirectoryEntry のプロパティ格納します

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

Public Class PropertyCollection
    Implements IDictionary, ICollection, IEnumerable
Dim instance As PropertyCollection
public class PropertyCollection : IDictionary,
 ICollection, IEnumerable
public ref class PropertyCollection : IDictionary,
 ICollection, IEnumerable
public class PropertyCollection implements
 IDictionary, ICollection, 
    IEnumerable
public class PropertyCollection implements
 IDictionary, ICollection, 
    IEnumerable
.NET Framework のセキュリティ.NET Frameworkセキュリティ
  • DirectoryServicesPermission  LinkDemand
継承階層継承階層
System.Object
  System.DirectoryServices.PropertyCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「PropertyCollection クラス」の関連用語

PropertyCollection クラスのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS