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
- ConstructorBuilder.cs
- DomainUpDown.cs
- HtmlInputHidden.cs
- XmlSchemaSimpleContentExtension.cs
- RandomNumberGenerator.cs
- StreamWriter.cs
- CodeTypeReference.cs
- HMACSHA384.cs
- SimpleHandlerFactory.cs
- GenericUriParser.cs
- SingleBodyParameterMessageFormatter.cs
- SvcMapFileSerializer.cs
- BamlResourceSerializer.cs
- HtmlTableRow.cs
- ObjectStateManagerMetadata.cs
- XmlAutoDetectWriter.cs
- _NegoStream.cs
- TransmissionStrategy.cs
- FixedBufferAttribute.cs
- TdsParserHelperClasses.cs
- MSHTMLHostUtil.cs
- OdbcCommand.cs
- SettingsAttributeDictionary.cs
- WindowsStatic.cs
- EmbeddedMailObject.cs
- SafeThemeHandle.cs
- SecurityHeaderTokenResolver.cs
- AppDomainFactory.cs
- PropertyFilterAttribute.cs
- StrongNameUtility.cs
- DocumentViewerBaseAutomationPeer.cs
- ControlDesignerState.cs
- DocumentOrderQuery.cs
- EmbossBitmapEffect.cs
- TableItemProviderWrapper.cs
- ImageListDesigner.cs
- mactripleDES.cs
- ProcessingInstructionAction.cs
- DataGridRow.cs
- SendingRequestEventArgs.cs
- WebPartVerbsEventArgs.cs
- FileLogRecordHeader.cs
- AnnotationResource.cs
- PropertyGridCommands.cs
- DirectoryInfo.cs
- EventData.cs
- EnumBuilder.cs
- ListViewInsertEventArgs.cs
- SmtpAuthenticationManager.cs
- ThemeDirectoryCompiler.cs
- BevelBitmapEffect.cs
- MenuItemStyle.cs
- ToolStripDropDown.cs
- IntSecurity.cs
- TypedAsyncResult.cs
- SectionVisual.cs
- RenderCapability.cs
- HttpSocketManager.cs
- TemplateLookupAction.cs
- RtfControls.cs
- LoadWorkflowAsyncResult.cs
- SelectedDatesCollection.cs
- WorkflowPrinting.cs
- AssemblySettingAttributes.cs
- InvokeProviderWrapper.cs
- ToolStripContainerActionList.cs
- WebPartCloseVerb.cs
- ValidateNames.cs
- Duration.cs
- basemetadatamappingvisitor.cs
- PresentationAppDomainManager.cs
- XmlSchemas.cs
- TdsParserStaticMethods.cs
- OleDbRowUpdatingEvent.cs
- _LocalDataStore.cs
- UInt64.cs
- GenericNameHandler.cs
- XPathDocument.cs
- VirtualPathUtility.cs
- KeyInfo.cs
- DBParameter.cs
- Descriptor.cs
- InstanceKeyCompleteException.cs
- DynamicRendererThreadManager.cs
- RootProfilePropertySettingsCollection.cs
- DataBindEngine.cs
- AnnotationObservableCollection.cs
- AnnotationDocumentPaginator.cs
- ToolStripContainer.cs
- followingquery.cs
- UnsafeNativeMethods.cs
- SymbolEqualComparer.cs
- Matrix3D.cs
- NumberFormatInfo.cs
- LinkedList.cs
- DataGridViewRowCollection.cs
- StringFunctions.cs
- Emitter.cs
- WebPartConnectionCollection.cs
- GridViewRowCollection.cs