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
- SQLGuidStorage.cs
- RegistryDataKey.cs
- BufferedReadStream.cs
- EventManager.cs
- QuaternionValueSerializer.cs
- DataGridViewCheckBoxColumn.cs
- ConnectionPointCookie.cs
- CapacityStreamGeometryContext.cs
- TextRangeProviderWrapper.cs
- KeyConstraint.cs
- Mutex.cs
- LabelEditEvent.cs
- SerializerWriterEventHandlers.cs
- RoleManagerSection.cs
- TextTrailingCharacterEllipsis.cs
- SystemGatewayIPAddressInformation.cs
- DomainUpDown.cs
- LinkClickEvent.cs
- AmbientEnvironment.cs
- ScriptingSectionGroup.cs
- ControlCollection.cs
- MenuAutomationPeer.cs
- PointF.cs
- StructuredTypeEmitter.cs
- WebPartConnectionsCloseVerb.cs
- IntPtr.cs
- CodeExpressionStatement.cs
- NetPeerTcpBindingElement.cs
- BamlRecords.cs
- ConfigXmlElement.cs
- XamlRtfConverter.cs
- LayoutSettings.cs
- sqlmetadatafactory.cs
- DesignTimeParseData.cs
- BehaviorEditorPart.cs
- CheckedListBox.cs
- ByteAnimationUsingKeyFrames.cs
- Decorator.cs
- ToolStripButton.cs
- _BaseOverlappedAsyncResult.cs
- PagerSettings.cs
- TextSelectionHelper.cs
- ToolStripItem.cs
- Style.cs
- XmlDictionaryReaderQuotas.cs
- CodeAttributeArgument.cs
- GeometryDrawing.cs
- PrintPreviewControl.cs
- PagePropertiesChangingEventArgs.cs
- BitmapEffectCollection.cs
- HtmlButton.cs
- LoadWorkflowAsyncResult.cs
- _StreamFramer.cs
- RegularExpressionValidator.cs
- Form.cs
- CodeChecksumPragma.cs
- IEnumerable.cs
- XmlDictionary.cs
- _ScatterGatherBuffers.cs
- HtmlTernaryTree.cs
- InkCanvasSelection.cs
- DependencyObject.cs
- GridErrorDlg.cs
- OleDbException.cs
- XmlChildNodes.cs
- CellQuery.cs
- KeyTimeConverter.cs
- _DisconnectOverlappedAsyncResult.cs
- RoleManagerEventArgs.cs
- ImageFormatConverter.cs
- EntryPointNotFoundException.cs
- SoapTransportImporter.cs
- EventEntry.cs
- SqlNotificationEventArgs.cs
- CleanUpVirtualizedItemEventArgs.cs
- HtmlControlDesigner.cs
- WebPartUserCapability.cs
- WebColorConverter.cs
- ObsoleteAttribute.cs
- InplaceBitmapMetadataWriter.cs
- CodeTypeDeclarationCollection.cs
- DelegateBodyWriter.cs
- FixedSOMTable.cs
- MultiTrigger.cs
- CodeIdentifier.cs
- CustomCategoryAttribute.cs
- PropertyEmitter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ColorTransformHelper.cs
- EntityDataSourceSelectedEventArgs.cs
- PresentationAppDomainManager.cs
- SparseMemoryStream.cs
- DbConnectionStringCommon.cs
- UTF7Encoding.cs
- Visual3D.cs
- AuthenticationSection.cs
- WebEventTraceProvider.cs
- UIElement.cs
- ChannelSinkStacks.cs
- DesignSurfaceCollection.cs