System.Waf.Presentation.ValidationHelper.CheckBindingMode C# (CSharp) Méthode

CheckBindingMode() private static méthode

private static CheckBindingMode ( BindingMode bindingMode ) : void
bindingMode BindingMode
Résultat void
        private static void CheckBindingMode(BindingMode bindingMode)
        {
            if (!WafConfiguration.IsInDesignMode && bindingMode != BindingMode.OneWayToSource)
            {
                throw new InvalidOperationException("The binding mode of the IsValid attached dependency property must be 'Mode=OneWayToSource'!");
            }
        }
    }