Aracılığıyla paylaş


ImportCatalogPart.ImportedPartLabelText Özellik

Tanım

Kullanıcı içeri aktarılan denetim kataloğundaki içeri aktarılan denetimi göstermek veya açıklamak için bir açıklama dosyasını içeri aktardıktan sonra görüntülenen metni alır veya ayarlar.

public:
 property System::String ^ ImportedPartLabelText { System::String ^ get(); void set(System::String ^ value); };
public string ImportedPartLabelText { get; set; }
member this.ImportedPartLabelText : string with get, set
Public Property ImportedPartLabelText As String

Özellik Değeri

Etiketin metnini içeren bir dize. Varsayılan değer, .NET Framework tarafından sağlanan kültüre özgü bir iletidir.

Örnekler

Aşağıdaki kod örneği, özelliğinin ImportedPartLabelText bildirim temelli ve programlı olarak nasıl kullanılacağını gösterir. Örneği çalıştırmak için gereken tam kod ve yönergeler için, sınıfa genel bakışın ImportCatalogPart Örnek bölümüne bakın.

Kodun aşağıdaki bölümünde, özellik değerinin ImportedPartLabelText denetim için bildirimli olarak ayarlandığına dikkat edin.

<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>

Kodun bu bölümünde özellik ImportedPartLabelText değeri program aracılığıyla atanır.

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 occurred " 
    + "during the import process.";

}
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 occurred " _
      & "during the import process."
End Sub

Sayfayı bir tarayıcıda yüklediğinizde, Katalog Modu'nu seçmek ve sayfayı katalog moduna geçmek için Görüntüleme Modu açılan liste denetimini kullanabilirsiniz. Sayfa katalog modunda ve açıklama dosyası karşıya yüklendiğinde, denetimin kullanıcı arabiriminde (UI) ImportCatalogPart görüntülenen çeşitli metin dizelerini not edin. Açıklama Dosyasını Karşıya Yükle düğmesine tıklarsanız, özellik metni de dahil olmak üzere kullanıcı arabirimindeki bazı özelliklerin ImportedPartLabelText metni değiştirilir.

Açıklamalar

ImportedPartLabelText özelliği genellikle denetimin içerdiği denetimi açıklayan kısa, genel bir etiket içermek ImportCatalogPart için kullanılır.

Şunlara uygulanır

Ayrıca bkz.