Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ListQueryResults.cs
- InstanceOwnerQueryResult.cs
- MaskedTextBox.cs
- CustomErrorsSectionWrapper.cs
- UpdatePanelControlTrigger.cs
- SegmentInfo.cs
- EntitySet.cs
- RotateTransform.cs
- StsCommunicationException.cs
- XmlEntity.cs
- ToolTipService.cs
- OutputScopeManager.cs
- WebConfigurationManager.cs
- TCPClient.cs
- HttpCookiesSection.cs
- FixedDSBuilder.cs
- CfgParser.cs
- SqlFormatter.cs
- PersianCalendar.cs
- BitmapSource.cs
- EntityDataSource.cs
- CodeBlockBuilder.cs
- DocumentViewerBaseAutomationPeer.cs
- Rect3DConverter.cs
- CommentEmitter.cs
- PolicyManager.cs
- ProfileEventArgs.cs
- counter.cs
- AgileSafeNativeMemoryHandle.cs
- FileIOPermission.cs
- DoubleLink.cs
- TextBoxBaseDesigner.cs
- ButtonBaseAutomationPeer.cs
- PersistenceProviderBehavior.cs
- Table.cs
- XPathNavigatorKeyComparer.cs
- OrderByExpression.cs
- DateTimeParse.cs
- ConfigurationElementProperty.cs
- HandlerFactoryCache.cs
- Brush.cs
- DateTimeConstantAttribute.cs
- EndpointDiscoveryMetadataCD1.cs
- DataGridViewCellMouseEventArgs.cs
- OpenCollectionAsyncResult.cs
- CounterSample.cs
- MediaElementAutomationPeer.cs
- Misc.cs
- TripleDESCryptoServiceProvider.cs
- CollectionView.cs
- XPathDocument.cs
- Peer.cs
- ExpressionBuilderCollection.cs
- SchemaInfo.cs
- WebPartConnectionsCancelVerb.cs
- KnowledgeBase.cs
- Encoding.cs
- DivideByZeroException.cs
- EdmEntityTypeAttribute.cs
- X509SecurityTokenAuthenticator.cs
- CustomAttribute.cs
- TagPrefixAttribute.cs
- EntryWrittenEventArgs.cs
- TrustManagerPromptUI.cs
- Int32KeyFrameCollection.cs
- DataTableReader.cs
- InstanceDescriptor.cs
- OneOfElement.cs
- SaveFileDialog.cs
- TextRangeEditTables.cs
- DashStyles.cs
- WebPartDisplayModeCancelEventArgs.cs
- PublisherIdentityPermission.cs
- DynamicScriptObject.cs
- Relationship.cs
- DiagnosticTrace.cs
- OleDbErrorCollection.cs
- InvalidAsynchronousStateException.cs
- FontCacheLogic.cs
- XmlDataLoader.cs
- BamlTreeUpdater.cs
- LayoutEngine.cs
- SHA512.cs
- CngKeyBlobFormat.cs
- MSAAEventDispatcher.cs
- BaseUriHelper.cs
- RequestCacheManager.cs
- IsolatedStorageFileStream.cs
- InkCanvasFeedbackAdorner.cs
- InstanceNormalEvent.cs
- OrderingInfo.cs
- Confirm.cs
- ActivityScheduledQuery.cs
- Transform3D.cs
- RepeaterItemCollection.cs
- SiteMapPath.cs
- PlatformCulture.cs
- PointAnimationBase.cs
- DataGridViewSelectedRowCollection.cs
- DataGridViewTextBoxCell.cs