Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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
- IDReferencePropertyAttribute.cs
- PathGeometry.cs
- PageHandlerFactory.cs
- Size3D.cs
- SessionStateSection.cs
- ByteStreamGeometryContext.cs
- EdmComplexPropertyAttribute.cs
- CodeNamespace.cs
- ArrayExtension.cs
- EmbeddedMailObjectCollectionEditor.cs
- KeyTimeConverter.cs
- DisplayNameAttribute.cs
- TransportConfigurationTypeElementCollection.cs
- ItemList.cs
- LayoutTable.cs
- TemplateBuilder.cs
- TableColumn.cs
- SafeFileMappingHandle.cs
- ShaderEffect.cs
- HashAlgorithm.cs
- CSharpCodeProvider.cs
- MenuItem.cs
- CurrencyManager.cs
- Missing.cs
- TypeBrowser.xaml.cs
- Encoder.cs
- HttpModuleActionCollection.cs
- DetailsViewUpdatedEventArgs.cs
- GcSettings.cs
- XmlSchemaAnyAttribute.cs
- RegexParser.cs
- RangeValuePatternIdentifiers.cs
- InfoCardKeyedHashAlgorithm.cs
- ButtonRenderer.cs
- SolidBrush.cs
- CqlParserHelpers.cs
- HScrollBar.cs
- Int16AnimationBase.cs
- WsiProfilesElementCollection.cs
- ResXResourceSet.cs
- SR.cs
- RevocationPoint.cs
- WindowsSolidBrush.cs
- StaticContext.cs
- DbDataSourceEnumerator.cs
- SqlConnectionHelper.cs
- TickBar.cs
- AccessText.cs
- XmlBoundElement.cs
- Span.cs
- PathFigureCollectionValueSerializer.cs
- NamedElement.cs
- LongValidatorAttribute.cs
- OverflowException.cs
- MediaSystem.cs
- ScriptResourceInfo.cs
- TimelineGroup.cs
- FileDialog.cs
- TemplatedMailWebEventProvider.cs
- WebPartCatalogCloseVerb.cs
- DataTemplateSelector.cs
- ADConnectionHelper.cs
- WebSysDescriptionAttribute.cs
- BitArray.cs
- SqlProfileProvider.cs
- FlowDocumentFormatter.cs
- IconConverter.cs
- DefaultWorkflowSchedulerService.cs
- WebBrowserUriTypeConverter.cs
- SoapRpcMethodAttribute.cs
- MessageDescription.cs
- TypeExtensions.cs
- UriWriter.cs
- SpinLock.cs
- HashAlgorithm.cs
- ControllableStoryboardAction.cs
- TransformConverter.cs
- securestring.cs
- XmlSerializerFactory.cs
- UserPreferenceChangingEventArgs.cs
- ErrorProvider.cs
- DataListItemCollection.cs
- SpellerError.cs
- DashStyle.cs
- StylusPointProperty.cs
- SafePEFileHandle.cs
- DynamicRendererThreadManager.cs
- FontFamily.cs
- ChooseAction.cs
- _HeaderInfoTable.cs
- LeafCellTreeNode.cs
- HttpWebRequestElement.cs
- EndpointAddressAugust2004.cs
- PageVisual.cs
- FixedHighlight.cs
- LocatorBase.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SecurityProtocolCorrelationState.cs
- DataServiceQueryOfT.cs
- NativeMethods.cs