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

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

ImportCatalogPart.PartImportErrorLabelText プロパティ

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

インポート プロセスエラーが発生した場合表示されるエラー メッセージ取得または設定します

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

Public Property PartImportErrorLabelText As
 String
Dim instance As ImportCatalogPart
Dim value As String

value = instance.PartImportErrorLabelText

instance.PartImportErrorLabelText = value
public string PartImportErrorLabelText { get;
 set; }
public:
property String^ PartImportErrorLabelText {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_PartImportErrorLabelText ()

/** @property */
public void set_PartImportErrorLabelText (String
 value)
public function get PartImportErrorLabelText
 () : String

public function set PartImportErrorLabelText
 (value : String)

プロパティ
ラベルテキストを含む文字列既定値は、.NET Framework提供する、カルチャ固有の文字列です。

解説解説

PartImportErrorLabelText プロパティは、ページ記述ファイルインポートようとしたときに問題またはエラーが発生した場合に、ユーザー通知するのに便利です。

使用例使用例

PartImportErrorLabelText プロパティ使用方法次のコード例示します宣言使用した方法プログラム使用した方法の 2 とおりの方法紹介します例の実行必要なコード全体については、ImportCatalogPart クラス概要の「例」を参照してください

次のコードセクションでは、コントロールPartImportErrorLabelText プロパティ値が宣言設定されます。

<asp:CatalogZone ID="CatalogZone1" runat="server">
  <ZoneTemplate>
    <asp:ImportCatalogPart ID="ImportCatalogPart1"
 
      runat="server" 
      Title="My ImportCatalogPart" 
      OnPreRender="ImportCatalogPart1_PreRender"
      BrowseHelpText="Type a path or browse to
 find a control's 
        description file." 
      UploadButtonText="Upload Description File" 
      UploadHelpText="Click the button to upload the description
 
        file."
      ImportedPartLabelText="My User Information WebPart"
 
      PartImportErrorLabelText="An error occurred while
 trying 
        to import a description file."  />
  </ZoneTemplate>
</asp:CatalogZone>
<asp:CatalogZone ID="CatalogZone1" runat="server">
  <ZoneTemplate>
    <asp:ImportCatalogPart ID="ImportCatalogPart1" 
      runat="server" 
      Title="My ImportCatalogPart" 
      OnPreRender="ImportCatalogPart1_PreRender"
      BrowseHelpText="Type a path or browse to find a control's 
        description file." 
      UploadButtonText="Upload Description File" 
      UploadHelpText="Click the button to upload the description 
        file."
      ImportedPartLabelText="My User Information WebPart" 
      PartImportErrorLabelText="An error occurred while trying
 
        to import a description file."  />
  </ZoneTemplate>
</asp:CatalogZone>

このコードセクションでは、PartImportErrorLabelText プロパティ値がプログラム代入されます。

Protected Sub Button1_Click(ByVal
 sender As Object, _
  ByVal e As EventArgs)
    ImportCatalogPart1.Title = "Import Server Controls"
    ImportCatalogPart1.BrowseHelpText = "Enter the path to a "
 _
      & "description file."
    ImportCatalogPart1.UploadButtonText = "Upload Description"
    ImportCatalogPart1.UploadHelpText = "Upload a description
 file."
    ImportCatalogPart1.ImportedPartLabelText = "Imported Controls"
    ImportCatalogPart1.PartImportErrorLabelText = "An error occured
 " _
      & "during the import process."
End Sub
protected void Button1_Click(object sender,
 EventArgs e)
{
  ImportCatalogPart1.Title = "Import Server Controls";
  ImportCatalogPart1.BrowseHelpText = "Enter the path to a "
    + "description file.";
  ImportCatalogPart1.UploadButtonText = "Upload Description";
  ImportCatalogPart1.UploadHelpText = "Upload a description file.";
  ImportCatalogPart1.ImportedPartLabelText = "Imported Controls";
  ImportCatalogPart1.PartImportErrorLabelText = "An error occured " 
    + "during the import process.";

}

ブラウザページ読み込む場合は、[Display Mode] ドロップダウン リスト コントロール使って [Catalog Mode] を選択しページカタログ モード切り替えることができますページカタログ モードのとき、記述ファイルアップロードされている場合は、ImportCatalogPart コントロールユーザー インターフェイス (UI) に各種テキスト文字列表示される点に注意してください。[Upload Description File] ボタンクリックすると、PartImportErrorLabelText プロパティテキストなど、UI一部プロパティテキスト変更されます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ImportCatalogPart クラス
ImportCatalogPart メンバ
System.Web.UI.WebControls.WebParts 名前空間
その他の技術情報
ASP.NET Web パーツ ページ



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS