다음을 통해 공유


ImportCatalogPart.BrowseHelpText 속성

정의

사용자가 설명 파일의 위치를 찾을 때 지침을 제공하는 텍스트 메시지를 가져오거나 설정합니다.

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

속성 값

메시지 텍스트가 포함된 문자열입니다. 기본값은 .NET Framework에서 제공하는 culture별 메시지입니다.

예제

다음 코드 예제를 사용 BrowseHelpText 하는 방법에 설명 합니다 선언적이 고 프로그래밍 방식으로 속성입니다. 예제를 실행하는 데 필요한 전체 코드 및 지침은 클래스 개요의 예제 섹션을 ImportCatalogPart 참조하세요.

다음 코드 섹션에서는 속성 값이 컨트롤에 BrowseHelpText 대해 선언적으로 설정되어 있는지 확인합니다.

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

이 코드 섹션에서는 속성 값이 BrowseHelpText 프로그래밍 방식으로 할당됩니다.

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

브라우저에서 페이지를 로드할 때 표시 모드 드롭다운 목록 컨트롤을 사용하여 카탈로그 모드 를 선택하고 페이지를 카탈로그 모드로 전환할 수 있습니다. 카탈로그 모드의 페이지와 설명 파일이 업로드되면 컨트롤의 UI(사용자 인터페이스)에 표시되는 다양한 텍스트 문자열을 ImportCatalogPart 확인합니다. 설명 파일 업로드 단추를 클릭하면 속성의 텍스트를 포함하여 UI의 여러 속성에 대한 텍스트가 BrowseHelpText 변경됩니다.

설명

속성은 BrowseHelpText 사용자가 가져온 컨트롤을 추가하는 과정에서 수행해야 하는 첫 번째 작업의 간단한 개요를 제공합니다. 경로를 입력하거나 파일을 찾아 설명 파일의 위치를 제공합니다. 이 속성에 대한 사용자 지정 값을 제공하는 일반적인 이유는 설명 파일을 찾기 위해 찾아봐야 하는 특정 네트워크 공유와 같은 사용자에 대한 특별한 지침이 있는 경우입니다.

적용 대상

추가 정보