Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DelegatedStream.cs
- ResourceExpressionBuilder.cs
- HtmlImage.cs
- CodeExporter.cs
- ParseChildrenAsPropertiesAttribute.cs
- Pointer.cs
- WinFormsUtils.cs
- SamlConstants.cs
- ResourceSet.cs
- OdbcException.cs
- DBAsyncResult.cs
- ToolStripSystemRenderer.cs
- XmlSchemaDatatype.cs
- GridViewSelectEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- ThicknessKeyFrameCollection.cs
- QueryContinueDragEventArgs.cs
- ServiceMemoryGates.cs
- Fault.cs
- Button.cs
- AutomationPropertyInfo.cs
- DefaultProxySection.cs
- CuspData.cs
- OleDbReferenceCollection.cs
- Configuration.cs
- KeyValueConfigurationElement.cs
- WmlValidatorAdapter.cs
- SafeRegistryHandle.cs
- CursorInteropHelper.cs
- HttpCapabilitiesEvaluator.cs
- basecomparevalidator.cs
- EncryptedHeader.cs
- FileVersionInfo.cs
- LogArchiveSnapshot.cs
- TableLayoutCellPaintEventArgs.cs
- rsa.cs
- FileDialog.cs
- CodeSnippetCompileUnit.cs
- DataQuery.cs
- CodeAccessPermission.cs
- SqlClientWrapperSmiStream.cs
- IDReferencePropertyAttribute.cs
- LayoutDump.cs
- hwndwrapper.cs
- CacheDependency.cs
- MatrixConverter.cs
- ScalarConstant.cs
- RemotingAttributes.cs
- StreamInfo.cs
- ListDictionaryInternal.cs
- PagesChangedEventArgs.cs
- RenderContext.cs
- TrustLevel.cs
- ADMembershipProvider.cs
- DetailsViewUpdatedEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- UdpMessageProperty.cs
- DoubleLinkListEnumerator.cs
- ZoomPercentageConverter.cs
- Authorization.cs
- OdbcConnectionString.cs
- ResourceKey.cs
- ShapeTypeface.cs
- Viewport2DVisual3D.cs
- NegotiateStream.cs
- ThemeInfoAttribute.cs
- _ChunkParse.cs
- ApplicationException.cs
- DataContractSerializerMessageContractImporter.cs
- EntitySetBase.cs
- CacheManager.cs
- DataMemberFieldEditor.cs
- DeclarativeCatalogPart.cs
- MSAAWinEventWrap.cs
- PathStreamGeometryContext.cs
- MappingSource.cs
- DescendantQuery.cs
- CodeDOMUtility.cs
- SearchForVirtualItemEventArgs.cs
- NumericPagerField.cs
- CustomWebEventKey.cs
- AuthenticationManager.cs
- InstancePersistenceCommandException.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- OutputCacheModule.cs
- datacache.cs
- coordinatorfactory.cs
- CroppedBitmap.cs
- PathFigureCollection.cs
- WebBrowserContainer.cs
- XmlValidatingReader.cs
- TextRenderingModeValidation.cs
- objectresult_tresulttype.cs
- ConstraintEnumerator.cs
- DebuggerAttributes.cs
- CustomErrorsSectionWrapper.cs
- ByValueEqualityComparer.cs
- LocalizableResourceBuilder.cs
- EventListener.cs