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
- CryptoStream.cs
- WCFBuildProvider.cs
- WebPartConnectionsConnectVerb.cs
- MessageContractMemberAttribute.cs
- FormViewPagerRow.cs
- AuthorizationContext.cs
- ConnectionPoint.cs
- TypeConverterAttribute.cs
- Function.cs
- TextServicesDisplayAttributePropertyRanges.cs
- EndOfStreamException.cs
- RichTextBox.cs
- AssemblyAttributes.cs
- RelationshipConstraintValidator.cs
- EventInfo.cs
- RenamedEventArgs.cs
- ExceptionUtility.cs
- _NestedSingleAsyncResult.cs
- BamlCollectionHolder.cs
- SQLByte.cs
- PathGeometry.cs
- RbTree.cs
- ListViewHitTestInfo.cs
- DataGridViewButtonCell.cs
- InvalidDataException.cs
- HttpHeaderCollection.cs
- Menu.cs
- CssStyleCollection.cs
- RootNamespaceAttribute.cs
- ImageCodecInfoPrivate.cs
- FontInfo.cs
- TextEditorSelection.cs
- XmlNamespaceMapping.cs
- ImageFormatConverter.cs
- Utils.cs
- MenuItemStyle.cs
- WebPartConnectionsCancelVerb.cs
- StringSource.cs
- ICollection.cs
- IntPtr.cs
- SelectionGlyphBase.cs
- Positioning.cs
- GridViewSelectEventArgs.cs
- DSASignatureDeformatter.cs
- infer.cs
- LocalizableResourceBuilder.cs
- mediaeventshelper.cs
- DocumentScope.cs
- ForceCopyBuildProvider.cs
- SafeNativeMethodsOther.cs
- PropertyPathWorker.cs
- DataControlLinkButton.cs
- ShapingEngine.cs
- ZoneButton.cs
- NavigationFailedEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- SafeNativeMethods.cs
- CustomPopupPlacement.cs
- DataGridViewTextBoxEditingControl.cs
- ClientSponsor.cs
- PrefixHandle.cs
- DataServiceQueryException.cs
- BitConverter.cs
- MetadataCache.cs
- X509CertificateClaimSet.cs
- ObjectStateFormatter.cs
- HitTestParameters3D.cs
- ExpressionBindingCollection.cs
- Timeline.cs
- SyntaxCheck.cs
- InputLangChangeRequestEvent.cs
- WebRequestModuleElementCollection.cs
- CaseStatement.cs
- FormDesigner.cs
- Transform.cs
- XmlSchemaSimpleContent.cs
- HitTestResult.cs
- WebControlsSection.cs
- CompiledRegexRunnerFactory.cs
- COMException.cs
- CheckPair.cs
- XmlSecureResolver.cs
- InstanceStore.cs
- ProfileEventArgs.cs
- PersistChildrenAttribute.cs
- BaseValidator.cs
- WebPartEditVerb.cs
- QilXmlReader.cs
- MonthChangedEventArgs.cs
- HttpDictionary.cs
- CodeConstructor.cs
- InputProcessorProfiles.cs
- As.cs
- Convert.cs
- RuntimeIdentifierPropertyAttribute.cs
- GeometryConverter.cs
- EntryWrittenEventArgs.cs
- Oci.cs
- GestureRecognizer.cs
- MessageDescriptionCollection.cs