Code:
/ DotNET / DotNET / 8.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
- SeekStoryboard.cs
- PermissionRequestEvidence.cs
- CodeAccessPermission.cs
- DocumentApplication.cs
- NetPeerTcpBindingElement.cs
- KeyMatchBuilder.cs
- StyleSelector.cs
- PointLightBase.cs
- SpeechRecognizer.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ShortcutKeysEditor.cs
- WorkflowPersistenceService.cs
- SelectionWordBreaker.cs
- HierarchicalDataBoundControlAdapter.cs
- WaveHeader.cs
- ContextStaticAttribute.cs
- FragmentQuery.cs
- RectAnimationUsingKeyFrames.cs
- TagPrefixInfo.cs
- LinkTarget.cs
- XmlSchemaAttributeGroup.cs
- MetadataItemSerializer.cs
- ThrowOnMultipleAssignment.cs
- EditorServiceContext.cs
- BindingNavigatorDesigner.cs
- BaseProcessor.cs
- PrtTicket_Base.cs
- BindingNavigator.cs
- ImageList.cs
- MetadataItem_Static.cs
- DelegateTypeInfo.cs
- BridgeDataReader.cs
- CompilerGlobalScopeAttribute.cs
- DefaultClaimSet.cs
- RSAProtectedConfigurationProvider.cs
- BuildProviderAppliesToAttribute.cs
- TreeNodeStyle.cs
- LeaseManager.cs
- ColumnMap.cs
- VisualStates.cs
- MsmqIntegrationChannelFactory.cs
- WebPartZone.cs
- ScrollBarRenderer.cs
- _KerberosClient.cs
- Compiler.cs
- MediaContext.cs
- IndexedGlyphRun.cs
- XamlReaderHelper.cs
- OleServicesContext.cs
- XmlNamespaceDeclarationsAttribute.cs
- RepeaterItem.cs
- DependencyPropertyAttribute.cs
- TextBoxDesigner.cs
- Quaternion.cs
- ArrayTypeMismatchException.cs
- ConfigViewGenerator.cs
- Filter.cs
- CodeAccessPermission.cs
- SharedStatics.cs
- DeviceSpecificDialogCachedState.cs
- NonSerializedAttribute.cs
- TemplateControlCodeDomTreeGenerator.cs
- Vector3DCollectionConverter.cs
- HiddenField.cs
- DataGridViewCellCollection.cs
- StructuralObject.cs
- AssemblyNameEqualityComparer.cs
- CreateUserErrorEventArgs.cs
- PlatformCulture.cs
- SqlProvider.cs
- ChtmlMobileTextWriter.cs
- AutoResizedEvent.cs
- Parsers.cs
- ProxyAttribute.cs
- DataObjectPastingEventArgs.cs
- SvcMapFileLoader.cs
- mediaeventshelper.cs
- WsdlParser.cs
- TextParagraphProperties.cs
- PolicyException.cs
- LinkTarget.cs
- Pkcs7Recipient.cs
- LineGeometry.cs
- HtmlButton.cs
- SignatureHelper.cs
- ErrorHandler.cs
- FixedPosition.cs
- DataGridColumnHeaderAutomationPeer.cs
- HtmlValidationSummaryAdapter.cs
- KeyFrames.cs
- Geometry.cs
- SerializationObjectManager.cs
- TTSEngineTypes.cs
- UserNamePasswordValidator.cs
- XmlArrayItemAttribute.cs
- TreeChangeInfo.cs
- EnlistmentTraceIdentifier.cs
- DateTimeFormat.cs
- AnnotationService.cs
- BaseAsyncResult.cs