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 サーバー コントロール用の基本的なコントロール デザイナ作成



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

辞書ショートカット

すべての辞書の索引

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

   

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



AccessDataSourceDesigner.DataFile プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS