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
- ValidatorCollection.cs
- OrderByQueryOptionExpression.cs
- DataSourceConverter.cs
- BlobPersonalizationState.cs
- TextEditorCopyPaste.cs
- SimplePropertyEntry.cs
- _DigestClient.cs
- NumericExpr.cs
- DynamicHyperLink.cs
- BufferModesCollection.cs
- NullableLongSumAggregationOperator.cs
- SchemaCollectionCompiler.cs
- MailWebEventProvider.cs
- LazyTextWriterCreator.cs
- ListBoxItemWrapperAutomationPeer.cs
- XmlComment.cs
- ListViewItemSelectionChangedEvent.cs
- StylusButtonEventArgs.cs
- OperationCanceledException.cs
- SortedDictionary.cs
- HttpClientCredentialType.cs
- BigInt.cs
- UnmanagedMemoryStream.cs
- VisualBrush.cs
- OleDbCommand.cs
- ResourceDefaultValueAttribute.cs
- QuaternionAnimationBase.cs
- ByteRangeDownloader.cs
- XmlILConstructAnalyzer.cs
- EnumValidator.cs
- HashCodeCombiner.cs
- DataRowCollection.cs
- DataGridRowAutomationPeer.cs
- PackageRelationship.cs
- XmlLinkedNode.cs
- JulianCalendar.cs
- DocumentSchemaValidator.cs
- ContainerUtilities.cs
- CollectionViewSource.cs
- Gdiplus.cs
- PropertyPath.cs
- IncomingWebResponseContext.cs
- ToolConsole.cs
- IsolationInterop.cs
- LinkUtilities.cs
- XAMLParseException.cs
- ConnectionStringSettings.cs
- SafeIUnknown.cs
- ParseHttpDate.cs
- InfiniteIntConverter.cs
- CompositionTarget.cs
- TextTabProperties.cs
- ResXBuildProvider.cs
- WebServicesInteroperability.cs
- RegexWorker.cs
- log.cs
- BrowserCapabilitiesFactoryBase.cs
- DatatypeImplementation.cs
- SamlAuthorityBinding.cs
- ProtocolsInstallComponent.cs
- SqlCacheDependencySection.cs
- VerificationAttribute.cs
- FileSystemInfo.cs
- Hyperlink.cs
- FormsAuthenticationUser.cs
- NavigationProgressEventArgs.cs
- PrinterSettings.cs
- ResXDataNode.cs
- LoginUtil.cs
- ZoneLinkButton.cs
- JavascriptCallbackBehaviorAttribute.cs
- mediaeventargs.cs
- InvalidPipelineStoreException.cs
- SchemaCollectionPreprocessor.cs
- util.cs
- LinkButton.cs
- Page.cs
- DataGridViewImageColumn.cs
- IndexerHelper.cs
- EntityFunctions.cs
- Enumerable.cs
- sitestring.cs
- CapabilitiesPattern.cs
- ConstantSlot.cs
- TextPatternIdentifiers.cs
- ContentType.cs
- XmlDomTextWriter.cs
- PointF.cs
- RotateTransform.cs
- ExecutedRoutedEventArgs.cs
- QilStrConcat.cs
- CodePageUtils.cs
- EUCJPEncoding.cs
- AuthenticationService.cs
- ConsoleKeyInfo.cs
- SeekStoryboard.cs
- InvalidWMPVersionException.cs
- ControlBindingsCollection.cs
- Atom10FormatterFactory.cs
- HttpWebRequest.cs