Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / TypeValidationEventArgs.cs / 1 / TypeValidationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// TypeValidationEventArgs. Provides data for the TypeValidationEventHandler event. /// public class TypeValidationEventArgs : EventArgs { private Type validatingType; private string message; private bool isValidInput; private object returnValue; private bool cancel; public TypeValidationEventArgs(Type validatingType, bool isValidInput, object returnValue, string message) { this.validatingType = validatingType; this.isValidInput = isValidInput; this.returnValue = returnValue; this.message = message; } ////// Specifies whether focus should be allowed to be shifted from the control. /// public bool Cancel { get { return this.cancel; } set { this.cancel = value; } } ////// The exception thrown by the validating object while performing the data validation. /// public bool IsValidInput { get { return this.isValidInput; } } ////// A message about the validation operation. Intended to be populated with an exception information if /// any thrown. /// public string Message { get { return this.message; } } ////// The value returned from the Parse method. /// public object ReturnValue { get { return this.returnValue; } } ////// The position where the test failed the mask constraint. /// public Type ValidatingType { get { return this.validatingType; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridColumnHeaderItemAutomationPeer.cs
- HtmlInputSubmit.cs
- ListViewItemMouseHoverEvent.cs
- SettingsSavedEventArgs.cs
- MenuStrip.cs
- PolicyChain.cs
- WindowsEditBoxRange.cs
- ToggleButtonAutomationPeer.cs
- VisualCollection.cs
- PeerCredentialElement.cs
- SizeFConverter.cs
- CompilerInfo.cs
- parserscommon.cs
- DataSourceUtil.cs
- TextSelectionHighlightLayer.cs
- Point3DAnimationBase.cs
- HtmlWindow.cs
- BindingCompleteEventArgs.cs
- TransformGroup.cs
- TemplateControl.cs
- SQLInt32Storage.cs
- ConfigXmlText.cs
- UnsafeNativeMethods.cs
- SingleAnimationBase.cs
- DataListDesigner.cs
- InvalidWMPVersionException.cs
- Vector3DAnimationBase.cs
- ClientUtils.cs
- FileChangesMonitor.cs
- SqlDataSourceTableQuery.cs
- ErrorEventArgs.cs
- ByteConverter.cs
- Pen.cs
- BitSet.cs
- SoapHeaderAttribute.cs
- LinqDataView.cs
- IBuiltInEvidence.cs
- XamlClipboardData.cs
- CriticalHandle.cs
- OutputCacheSettings.cs
- ToolStripProgressBar.cs
- LinqDataSource.cs
- ManagedIStream.cs
- ActiveDocumentEvent.cs
- RadioButton.cs
- NotifyCollectionChangedEventArgs.cs
- ComponentEditorForm.cs
- ConditionalDesigner.cs
- DbParameterCollection.cs
- SyncOperationState.cs
- ThaiBuddhistCalendar.cs
- BaseDataList.cs
- PhysicalOps.cs
- AttachInfo.cs
- TypeBrowser.xaml.cs
- TextSelectionHelper.cs
- TableProviderWrapper.cs
- BulletedListEventArgs.cs
- CoreSwitches.cs
- TemplateBindingExtensionConverter.cs
- XsltLibrary.cs
- FlowLayoutSettings.cs
- WindowsListViewItem.cs
- StreamingContext.cs
- storepermissionattribute.cs
- Wizard.cs
- ResourceSetExpression.cs
- TypeElement.cs
- WSHttpBindingElement.cs
- LeaseManager.cs
- OleDbFactory.cs
- LocatorManager.cs
- ListBoxChrome.cs
- CompilationSection.cs
- PropertyGridCommands.cs
- TaiwanCalendar.cs
- SafeRightsManagementSessionHandle.cs
- Variable.cs
- BooleanExpr.cs
- SQLInt16.cs
- DoubleAnimationUsingPath.cs
- LogicalExpr.cs
- HttpProxyTransportBindingElement.cs
- CodeDelegateInvokeExpression.cs
- SspiNegotiationTokenProviderState.cs
- ArrayElementGridEntry.cs
- StrongNameMembershipCondition.cs
- FunctionNode.cs
- SortedDictionary.cs
- DataRowComparer.cs
- HtmlEmptyTagControlBuilder.cs
- SecurityHelper.cs
- XmlWriter.cs
- StateBag.cs
- PatternMatcher.cs
- ConnectionProviderAttribute.cs
- RequiredFieldValidator.cs
- DesignDataSource.cs
- StoragePropertyMapping.cs
- ConnectionManagementElementCollection.cs