Validation.GetErrorTemplate(DependencyObject) 메서드

정의

지정된 요소의 ErrorTemplate 연결된 속성의 값을 설정합니다.

public:
 static System::Windows::Controls::ControlTemplate ^ GetErrorTemplate(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static System.Windows.Controls.ControlTemplate GetErrorTemplate (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetErrorTemplate : System.Windows.DependencyObject -> System.Windows.Controls.ControlTemplate
Public Shared Function GetErrorTemplate (element As DependencyObject) As ControlTemplate

매개 변수

element
DependencyObject

값을 읽을 UIElement 또는 ContentElement 개체입니다.

반환

ControlTemplate

표시기 계층에서 유효성 검사 오류 피드백을 생성하는 데 사용되는 ControlTemplate 입니다.

특성

예외

elementnull인 경우입니다.

적용 대상