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
- ScrollProperties.cs
- Boolean.cs
- LineServices.cs
- DrawTreeNodeEventArgs.cs
- TranslateTransform3D.cs
- Expression.cs
- XamlParser.cs
- FatalException.cs
- SystemException.cs
- TreeViewCancelEvent.cs
- PeerEndPoint.cs
- XPathDocumentBuilder.cs
- DiscreteKeyFrames.cs
- BrowserInteropHelper.cs
- baseaxisquery.cs
- ValueConversionAttribute.cs
- WCFModelStrings.Designer.cs
- ButtonRenderer.cs
- ClosureBinding.cs
- NativeMethods.cs
- CodeTypeDeclarationCollection.cs
- FormsAuthentication.cs
- DynamicEntity.cs
- DefaultTypeArgumentAttribute.cs
- TreeViewCancelEvent.cs
- SoapUnknownHeader.cs
- TextSearch.cs
- SqlStream.cs
- RequestResizeEvent.cs
- ConnectionPoolManager.cs
- TrackingStringDictionary.cs
- AssemblyResourceLoader.cs
- OleDbDataReader.cs
- RowToParametersTransformer.cs
- ToolboxSnapDragDropEventArgs.cs
- SystemTcpStatistics.cs
- MessageQueue.cs
- EntityStoreSchemaFilterEntry.cs
- WindowProviderWrapper.cs
- ProcessThread.cs
- TemplateKeyConverter.cs
- OracleMonthSpan.cs
- SynchronizedReadOnlyCollection.cs
- CorePropertiesFilter.cs
- HttpWebRequestElement.cs
- TableLayoutStyle.cs
- Vector.cs
- StaticExtension.cs
- TreeNodeConverter.cs
- ProtectedProviderSettings.cs
- ScrollViewerAutomationPeer.cs
- ResourceReferenceKeyNotFoundException.cs
- WebSysDescriptionAttribute.cs
- FixedPage.cs
- GlobalProxySelection.cs
- HMACSHA512.cs
- DocumentViewerHelper.cs
- PrintingPermission.cs
- NativeStructs.cs
- MetadataArtifactLoaderCompositeResource.cs
- ToolStripDropDownItem.cs
- JsonSerializer.cs
- Point4DConverter.cs
- SelectionRange.cs
- baseaxisquery.cs
- CommandManager.cs
- Profiler.cs
- DependencyPropertyDescriptor.cs
- DbConnectionPoolCounters.cs
- XmlWellformedWriterHelpers.cs
- WebPartExportVerb.cs
- BuildManagerHost.cs
- PopOutPanel.cs
- ArrayListCollectionBase.cs
- propertyentry.cs
- ContainerParagraph.cs
- TdsRecordBufferSetter.cs
- StylusPointPropertyInfoDefaults.cs
- _UriTypeConverter.cs
- PageSetupDialog.cs
- DataTableMapping.cs
- AsyncDataRequest.cs
- SqlParameterCollection.cs
- PropertyMetadata.cs
- cookiecollection.cs
- ChtmlTextWriter.cs
- IssuanceLicense.cs
- XmlCDATASection.cs
- TimeIntervalCollection.cs
- PrintPreviewDialog.cs
- TemplateKey.cs
- DelegateTypeInfo.cs
- KeyboardDevice.cs
- Range.cs
- SkinBuilder.cs
- SHA512Managed.cs
- LinkTarget.cs
- Int16.cs
- FilterEventArgs.cs
- ClientProxyGenerator.cs