DataTable.ExtendedProperties プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataTable.ExtendedProperties プロパティの意味・解説 

DataTable.ExtendedProperties プロパティ

カスタマイズされたユーザー情報のコレクションを取得します。

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

Public ReadOnly Property
 ExtendedProperties As PropertyCollection
Dim instance As DataTable
Dim value As PropertyCollection

value = instance.ExtendedProperties
public PropertyCollection ExtendedProperties { get;
 }
public:
property PropertyCollection^ ExtendedProperties {
    PropertyCollection^ get ();
}
/** @property */
public PropertyCollection get_ExtendedProperties ()
public function get ExtendedProperties
 () : PropertyCollection

プロパティ値
カスタム ユーザー情報が格納された PropertyCollection。

解説解説

ExtendedProperties プロパティを使用して、カスタム情報を DataTable に追加します。Add メソッドで情報を追加します。Item メソッドで情報を取得します。

拡張プロパティは、String 型にする必要があります。DataTable が XML として書き込まれた場合、文字列型ではないプロパティは永続化されません。

使用例使用例

ExtendedProperties プロパティを使用して、タイムスタンプ値を DataTable に追加する例を次に示します。

Private Sub GetAndSetExtendedProperties(ByVal
 myTable As DataTable)
   ' Add an item to the collection.
   myTable.ExtendedProperties.Add("TimeStamp", DateTime.Now)
   ' Print the item.
   Console.WriteLine(myTable.ExtendedProperties.Item("TimeStamp"))
End Sub
private void GetAndSetExtendedProperties(DataTable
 myTable){
   // Add an item to the collection.
   myTable.ExtendedProperties.Add("TimeStamp", DateTime.Now);
   // Print the item.
   Console.WriteLine(myTable.ExtendedProperties["TimeStamp"]);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataTable.ExtendedProperties プロパティ」の関連用語

DataTable.ExtendedProperties プロパティのお隣キーワード
検索ランキング

   

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



DataTable.ExtendedProperties プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS