ActionsPane.ValidateChildren 方法 (ValidationConstraints)

導致支援驗證的所有子控制項對其資料進行驗證。

命名空間:  Microsoft.Office.Tools
組件:  Microsoft.Office.Tools.Common (在 Microsoft.Office.Tools.Common.dll 中)

語法

'宣告
<BrowsableAttribute(True)> _
Function ValidateChildren ( _
    validationConstraints As ValidationConstraints _
) As Boolean
[BrowsableAttribute(true)]
bool ValidateChildren(
    ValidationConstraints validationConstraints
)

參數

傳回值

型別:System.Boolean
如果所有子系都驗證成功,則為 true,否則為 false。如果這個方法是從 ValidatingValidated 事件處理常式呼叫,它一定會傳回 false。

備註

此方法提供和 ContainerControl.ValidateChildren(ValidationConstraints) 方法相同的功能。如需使用這個方法的詳細資訊,請參閱 ContainerControl.ValidateChildren(ValidationConstraints)

.NET Framework 安全性

請參閱

參考

ActionsPane 介面

ValidateChildren 多載

Microsoft.Office.Tools 命名空間

其他資源

執行窗格概觀