DataListDesigner.GetErrorDesignTimeHtml(Exception) 메서드

정의

컨트롤을 렌더링하는 동안 오류가 발생한 경우 지정한 예외에 대해 디자인 타임에 표시할 HTML을 가져옵니다.

protected:
 override System::String ^ GetErrorDesignTimeHtml(Exception ^ e);
protected override string GetErrorDesignTimeHtml(Exception e);
override this.GetErrorDesignTimeHtml : Exception -> string
Protected Overrides Function GetErrorDesignTimeHtml (e As Exception) As String

매개 변수

e
Exception

발생한 예외입니다.

반품

지정한 예외에 대한 디자인 타임에 표시되는 HTML입니다.

예제

다음 코드 예제에서는 예외가 발생할 때 디자인 화면에서 컨트롤의 모양을 수정 하는 메서드를 재정 GetErrorDesignTimeHtmlDataList 하는 방법을 보여 줍니다.

이 코드 예제는 클래스에 제공된 더 큰 예제의 DataListDesigner 일부입니다.

protected override string
    GetErrorDesignTimeHtml(System.Exception exc)
{
    return CreatePlaceHolderDesignTimeHtml(
        "ASPNET.Examples: An error occurred while rendering the GridView.");
}
Protected Overrides Function _
    GetErrorDesignTimeHtml(ByVal exc As Exception) As String

    Return CreatePlaceHolderDesignTimeHtml( _
        "ASPNET.Examples: An error occurred while rendering the GridView.")

End Function

적용 대상

추가 정보