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
- InternalControlCollection.cs
- XmlSchemaImporter.cs
- DataKeyPropertyAttribute.cs
- QueryOutputWriter.cs
- StateDesigner.CommentLayoutGlyph.cs
- StructuredProperty.cs
- CodeCompileUnit.cs
- EventListenerClientSide.cs
- CollectionView.cs
- SoapFormatExtensions.cs
- HttpApplicationFactory.cs
- CodeDelegateCreateExpression.cs
- EllipseGeometry.cs
- LayoutTableCell.cs
- EntityDataSourceWizardForm.cs
- ExternalDataExchangeClient.cs
- AsymmetricSignatureDeformatter.cs
- FileSystemInfo.cs
- SamlAttributeStatement.cs
- XmlKeywords.cs
- IntSecurity.cs
- EventDescriptor.cs
- RepeatBehavior.cs
- HealthMonitoringSection.cs
- SiteOfOriginContainer.cs
- QilFunction.cs
- Registry.cs
- SimpleTypesSurrogate.cs
- DesignerActionUIStateChangeEventArgs.cs
- AttributeCallbackBuilder.cs
- WCFBuildProvider.cs
- RoutedCommand.cs
- UseManagedPresentationElement.cs
- FlagPanel.cs
- DbSource.cs
- TemplateBuilder.cs
- HWStack.cs
- Keyboard.cs
- StrokeNode.cs
- ButtonChrome.cs
- InvokeFunc.cs
- CollectionBuilder.cs
- Button.cs
- GridViewDeletedEventArgs.cs
- ReflectTypeDescriptionProvider.cs
- Overlapped.cs
- HealthMonitoringSection.cs
- ImplicitInputBrush.cs
- BufferedStream2.cs
- CodeSnippetStatement.cs
- NumericUpDownAcceleration.cs
- AdornerPresentationContext.cs
- OutputCacheModule.cs
- LocalBuilder.cs
- WindowsHyperlink.cs
- BindingSourceDesigner.cs
- AxHost.cs
- Int64AnimationBase.cs
- WebPartMenuStyle.cs
- XmlSchemaAttribute.cs
- streamingZipPartStream.cs
- ServiceAuthorizationElement.cs
- GenericAuthenticationEventArgs.cs
- PlainXmlDeserializer.cs
- DrawingContextWalker.cs
- IPHostEntry.cs
- FaultHandlingFilter.cs
- QueryReaderSettings.cs
- NegotiateStream.cs
- HybridWebProxyFinder.cs
- ServiceBuildProvider.cs
- GeometryValueSerializer.cs
- SQLDecimal.cs
- IisTraceListener.cs
- CommandLibraryHelper.cs
- MatrixCamera.cs
- FontResourceCache.cs
- GridToolTip.cs
- RegionIterator.cs
- HandlerWithFactory.cs
- LinkButton.cs
- ComboBoxRenderer.cs
- GroupBoxRenderer.cs
- GenericRootAutomationPeer.cs
- ImageDrawing.cs
- WriteTimeStream.cs
- Win32Interop.cs
- DelegatedStream.cs
- SplineKeyFrames.cs
- WebSysDescriptionAttribute.cs
- MessageSecurityOverMsmq.cs
- FunctionUpdateCommand.cs
- DataGridTextColumn.cs
- PngBitmapDecoder.cs
- Rect3DValueSerializer.cs
- ComponentResourceKeyConverter.cs
- HttpWebRequest.cs
- TabControlToolboxItem.cs
- EntityContainerAssociationSet.cs
- StringFunctions.cs