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 の場合。

適用対象