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

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

AccessDataSourceDesigner.DataFile プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

デザイナのプロパティを実装して、関連付けられたコントロールの DataFile プロパティの Shadows' を実行します。

名前空間: System.Web.UI.Design.WebControls
アセンブリ: System.Design (system.design.dll 内)
構文構文

Dim instance As AccessDataSourceDesigner
Dim value As String

value = instance.DataFile

instance.DataFile = value
/** @property */
public String get_DataFile ()

/** @property */
public void set_DataFile (String value)

プロパティ値
AccessDataSource に関連付けられているデータ ファイルの名前とパスを格納している String。

解説解説
使用例使用例

DataFile プロパティを使用して Access データ ファイルの名前とパスを表示する方法を次のコード例に示します。Access データ ファイルは、デザイン時のコントロールを表すプレースホルダの AccessDataSource コントロールに関連付けられています。

このコード例は、AccessDataSourceDesigner クラスのトピックで取り上げているコード例の一部分です。

' Generate design time markup.
Public Overrides Function
 GetDesignTimeHtml() As String
    ' Generate a design-time placeholder containing the 
    ' DataFile and the ConnectionString properties.
    ' Split the ConnectionString into segments so it doesn't make
    ' placeholder too wide.
    Dim connectParts() As String
    connectParts = GetConnectionString().Split((";").ToCharArray())
    Dim connectString As String
    connectString = "  " & connectParts(0)

    Dim i As Integer
    For i = 1 To connectParts.Length - 1
        connectString &= ";<br>&nbsp;&nbsp;"
 & connectParts(i).Trim()
    Next

    Return CreatePlaceHolderDesignTimeHtml( _
        "DataFile: " & DataFile & "<br
 />" & _
        "Connection string:<br />" & connectString)
End Function
// Generate design time markup.
public override string GetDesignTimeHtml()
{
    // Generate a design-time placeholder containing the 
    // DataFile and the ConnectionString properties.
    // Split the ConnectionString into segments so it doesn't make
    // placeholder too wide.
    string[] connectParts = GetConnectionString().Split(new
 char[] { ';' });
    string connectString = "&nbsp;&nbsp;" +
 connectParts[0];

    for (int i = 1; i < connectParts.Length;
 i++)
        connectString += ";<br>&nbsp;&nbsp;" + connectParts[i].Trim();

    return CreatePlaceHolderDesignTimeHtml(
        "DataFile: " + DataFile + "<br />" +
        "Connection string:<br />" + connectString);
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AccessDataSourceDesigner クラス
AccessDataSourceDesigner メンバ
System.Web.UI.Design.WebControls 名前空間
AccessDataSource
AccessDataSource.DataFile
その他の技術情報
ASP.NET コントロール デザイナの概要
チュートリアル : Web サーバー コントロール用の基本的なコントロール デザイナの作成


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

英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



AccessDataSourceDesigner.DataFile プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS