AjaxControlToolkit.DynamicPopulateExtenderControlBase.EnsureValid C# (CSharp) Méthode

EnsureValid() public méthode

public EnsureValid ( ) : void
Résultat void
        public override void EnsureValid()
        {
            base.EnsureValid();
            // If any properties are set, they must all be valid
            if(!String.IsNullOrEmpty(DynamicControlID) || !String.IsNullOrEmpty(DynamicContextKey) ||
                !String.IsNullOrEmpty(DynamicServicePath) || !String.IsNullOrEmpty(DynamicServiceMethod)) {
                if(String.IsNullOrEmpty(DynamicControlID))
                    throw new ArgumentException("DynamicControlID must be set");

                // DynamicContextKey optional
                // DynamicServicePath optional
                if(String.IsNullOrEmpty(DynamicServiceMethod))
                    throw new ArgumentException("DynamicServiceMethod must be set");
            }
        }
DynamicPopulateExtenderControlBase