/// <summary> /// /// </summary> /// <param name="ruleSet"></param> public void RuleSetValidated([In, MarshalAs(UnmanagedType.IDispatch)] object ruleSet) { if (!Validate("RuleSetValidated")) { Invoker.ReleaseParamsArray(ruleSet); return; } NetOffice.VisioApi.IVValidationRuleSet newRuleSet = Factory.CreateEventArgumentObjectFromComProxy(EventClass, ruleSet) as NetOffice.VisioApi.IVValidationRuleSet; object[] paramsArray = new object[1]; paramsArray[0] = newRuleSet; EventBinding.RaiseCustomEvent("RuleSetValidated", ref paramsArray); }
public void RuleSetValidated([In, MarshalAs(UnmanagedType.IDispatch)] object ruleSet) { Delegate[] recipients = _eventBinding.GetEventRecipients("RuleSetValidated"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(ruleSet); return; } NetOffice.VisioApi.IVValidationRuleSet newRuleSet = Factory.CreateObjectFromComProxy(_eventClass, ruleSet) as NetOffice.VisioApi.IVValidationRuleSet; object[] paramsArray = new object[1]; paramsArray[0] = newRuleSet; _eventBinding.RaiseCustomEvent("RuleSetValidated", ref paramsArray); }
public void Validate(NetOffice.VisioApi.IVValidationRuleSet ruleSet) { object[] paramsArray = Invoker.ValidateParamsArray(ruleSet); Invoker.Method(this, "Validate", paramsArray); }