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
- XmlQueryType.cs
- TreeView.cs
- TextFormatterImp.cs
- InputChannelAcceptor.cs
- OutputChannelBinder.cs
- AnnotationDocumentPaginator.cs
- ExtensibleClassFactory.cs
- ScriptModule.cs
- InputScopeAttribute.cs
- SID.cs
- KeyPullup.cs
- HashRepartitionStream.cs
- XmlWrappingWriter.cs
- TableLayout.cs
- SerialErrors.cs
- Process.cs
- XamlDebuggerXmlReader.cs
- DoubleAnimationBase.cs
- NamespaceDisplay.xaml.cs
- securestring.cs
- RuntimeVariableList.cs
- RegexCompiler.cs
- ReadOnlyDictionary.cs
- SrgsToken.cs
- WebPartsPersonalization.cs
- OverflowException.cs
- counter.cs
- SolidColorBrush.cs
- TemplateBaseAction.cs
- TextBox.cs
- FontWeightConverter.cs
- DefaultAssemblyResolver.cs
- TextPointerBase.cs
- Style.cs
- ViewStateException.cs
- BamlVersionHeader.cs
- AutomationIdentifierGuids.cs
- Compiler.cs
- Serializer.cs
- ImageMap.cs
- XPathException.cs
- ScaleTransform.cs
- BlockCollection.cs
- MessageSecurityOverHttpElement.cs
- UIElementIsland.cs
- SecurityDocument.cs
- SessionPageStatePersister.cs
- ReferenceList.cs
- ChangeBlockUndoRecord.cs
- arabicshape.cs
- DocComment.cs
- TrackingMemoryStreamFactory.cs
- ServiceHttpModule.cs
- CollectionViewGroupInternal.cs
- TransformerInfo.cs
- SymLanguageVendor.cs
- TextEffectCollection.cs
- InstanceDataCollectionCollection.cs
- MessageContractMemberAttribute.cs
- ParameterEditorUserControl.cs
- ViewManager.cs
- ActivityPropertyReference.cs
- Int64Storage.cs
- SchemaTableColumn.cs
- GetReadStreamResult.cs
- Variable.cs
- LicenseManager.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlILCommand.cs
- BoolExpr.cs
- WindowsNonControl.cs
- LinqDataSourceEditData.cs
- TemporaryBitmapFile.cs
- DrawItemEvent.cs
- ViewStateException.cs
- SQLStringStorage.cs
- HyperLinkColumn.cs
- ObjectIDGenerator.cs
- HtmlInputImage.cs
- NamedPipeAppDomainProtocolHandler.cs
- RoutedEventValueSerializer.cs
- DataGridColumnCollection.cs
- WindowsListViewGroup.cs
- SByteStorage.cs
- EditorResources.cs
- RangeValidator.cs
- XomlCompilerParameters.cs
- PrefixHandle.cs
- WorkflowDesignerMessageFilter.cs
- WebControlsSection.cs
- WpfKnownMember.cs
- _SslSessionsCache.cs
- FileReader.cs
- EncoderExceptionFallback.cs
- EventLogLink.cs
- DataObjectEventArgs.cs
- LinkedList.cs
- _TransmitFileOverlappedAsyncResult.cs
- GroupItemAutomationPeer.cs
- EventWaitHandleSecurity.cs