Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MenuItemStyleCollection.cs
- ClosableStream.cs
- remotingproxy.cs
- CalloutQueueItem.cs
- ValueCollectionParameterReader.cs
- DocumentGridContextMenu.cs
- FunctionCommandText.cs
- UserControl.cs
- RegexFCD.cs
- SystemResourceHost.cs
- ErrorsHelper.cs
- ThicknessConverter.cs
- SoapIncludeAttribute.cs
- XmlObjectSerializerWriteContext.cs
- ButtonChrome.cs
- RenderingBiasValidation.cs
- Literal.cs
- DataGridViewRowCancelEventArgs.cs
- AuthenticationService.cs
- HScrollProperties.cs
- EventArgs.cs
- SecurityResources.cs
- DbConnectionInternal.cs
- Pen.cs
- TextWriter.cs
- HttpException.cs
- StateBag.cs
- GridView.cs
- XmlQueryRuntime.cs
- OletxCommittableTransaction.cs
- HighlightVisual.cs
- ValueProviderWrapper.cs
- NetworkInterface.cs
- Timer.cs
- HostingPreferredMapPath.cs
- _NegoStream.cs
- smtpconnection.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SystemWebExtensionsSectionGroup.cs
- ToolTipAutomationPeer.cs
- Int32Converter.cs
- SafeSystemMetrics.cs
- JapaneseCalendar.cs
- ParallelEnumerable.cs
- OciEnlistContext.cs
- XmlComplianceUtil.cs
- BigIntegerStorage.cs
- ProxyManager.cs
- JsonReaderDelegator.cs
- Listbox.cs
- CodeTypeMemberCollection.cs
- EdmComplexTypeAttribute.cs
- Attributes.cs
- WebPartUserCapability.cs
- SplayTreeNode.cs
- UInt32.cs
- RMEnrollmentPage1.cs
- SQLDateTimeStorage.cs
- WebPartConnectionsEventArgs.cs
- DataSourceView.cs
- ExtendedProtectionPolicy.cs
- InkCollectionBehavior.cs
- JavaScriptSerializer.cs
- DrawingContextDrawingContextWalker.cs
- Base64Encoder.cs
- PixelFormat.cs
- LocalizeDesigner.cs
- EventLogEntryCollection.cs
- HintTextMaxWidthConverter.cs
- EventSourceCreationData.cs
- AuthenticationModuleElement.cs
- UriParserTemplates.cs
- HighlightOverlayGlyph.cs
- IgnoreSection.cs
- ToolStripArrowRenderEventArgs.cs
- FormClosedEvent.cs
- SqlBuilder.cs
- SafeTokenHandle.cs
- SBCSCodePageEncoding.cs
- PropertySourceInfo.cs
- TimeZone.cs
- BaseContextMenu.cs
- FormsAuthenticationUser.cs
- GridViewSortEventArgs.cs
- StylusPointProperties.cs
- RandomDelaySendsAsyncResult.cs
- StylusTip.cs
- QueryParameter.cs
- RewritingSimplifier.cs
- EnvironmentPermission.cs
- AnnouncementInnerClient11.cs
- StoreConnection.cs
- DbProviderFactories.cs
- PageVisual.cs
- UpdatePanelTriggerCollection.cs
- bidPrivateBase.cs
- SqlDataSourceView.cs
- DateTimeConstantAttribute.cs
- HexParser.cs
- ToolStripPanelRow.cs