Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / TypeValidationEventArgs.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HyperLinkColumn.cs
- WindowInteropHelper.cs
- XmlObjectSerializerReadContextComplex.cs
- FilterElement.cs
- ItemList.cs
- ExpressionParser.cs
- sqlmetadatafactory.cs
- EditorBrowsableAttribute.cs
- Int32Collection.cs
- SqlDataSourceStatusEventArgs.cs
- PointAnimationUsingPath.cs
- WindowsClaimSet.cs
- OutputScope.cs
- NavigationPropertyEmitter.cs
- AtomServiceDocumentSerializer.cs
- EdgeModeValidation.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XmlMemberMapping.cs
- DataGridLinkButton.cs
- DefaultPropertyAttribute.cs
- Adorner.cs
- FontResourceCache.cs
- DbInsertCommandTree.cs
- MaterialGroup.cs
- IdentifierService.cs
- EntitySetDataBindingList.cs
- CompilerCollection.cs
- ProxyElement.cs
- SubordinateTransaction.cs
- CodeDomSerializationProvider.cs
- UrlUtility.cs
- SizeLimitedCache.cs
- ObjectContext.cs
- LingerOption.cs
- EnumType.cs
- ImageSourceConverter.cs
- UrlMappingsSection.cs
- PrincipalPermission.cs
- DbSourceParameterCollection.cs
- BeginGetFileNameFromUserRequest.cs
- BindingEntityInfo.cs
- HostingEnvironmentWrapper.cs
- InstanceHandleReference.cs
- ToolStripSeparatorRenderEventArgs.cs
- RectAnimationBase.cs
- SchemaNotation.cs
- AttributeSetAction.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- GeometryDrawing.cs
- Rotation3D.cs
- Invariant.cs
- ActivityDesignerAccessibleObject.cs
- MetadataArtifactLoaderResource.cs
- InvalidCardException.cs
- SendContent.cs
- AccessControlEntry.cs
- MessageFormatterConverter.cs
- FormsAuthentication.cs
- TextOutput.cs
- KnownTypes.cs
- Array.cs
- DataGridViewCellCancelEventArgs.cs
- SerializationStore.cs
- DataGridBoolColumn.cs
- PageAsyncTaskManager.cs
- EpmSourcePathSegment.cs
- BitmapEffect.cs
- SortKey.cs
- SafeTokenHandle.cs
- XmlSchemaAttribute.cs
- RemotingException.cs
- SmtpMail.cs
- FormsAuthenticationUser.cs
- IisTraceWebEventProvider.cs
- FlowDocumentView.cs
- SkinBuilder.cs
- DataGridViewRowConverter.cs
- FocusManager.cs
- DBCommand.cs
- SiteOfOriginPart.cs
- ReflectionPermission.cs
- TypedReference.cs
- ExtenderHelpers.cs
- PrincipalPermission.cs
- XmlSchemaObjectCollection.cs
- XmlLanguageConverter.cs
- milrender.cs
- Visitor.cs
- NCryptNative.cs
- DataGridCaption.cs
- XsdBuildProvider.cs
- DesignerSerializationVisibilityAttribute.cs
- DesignerDataTable.cs
- Image.cs
- HatchBrush.cs
- PersonalizationDictionary.cs
- CapabilitiesRule.cs
- LazyLoadBehavior.cs
- PersistNameAttribute.cs
- ListViewItem.cs