Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SingleObjectCollection.cs
- TdsValueSetter.cs
- XamlSerializationHelper.cs
- Block.cs
- ImageAnimator.cs
- FileLevelControlBuilderAttribute.cs
- FirstMatchCodeGroup.cs
- BaseDataBoundControlDesigner.cs
- FilteredDataSetHelper.cs
- Screen.cs
- DllNotFoundException.cs
- SynchronousChannelMergeEnumerator.cs
- SqlPersonalizationProvider.cs
- CqlIdentifiers.cs
- StringExpressionSet.cs
- KeyValueSerializer.cs
- UnsafeNativeMethods.cs
- DataPointer.cs
- DataControlFieldCell.cs
- SourceElementsCollection.cs
- PrintDocument.cs
- RawStylusActions.cs
- RTLAwareMessageBox.cs
- XamlReader.cs
- Point3D.cs
- BinaryReader.cs
- WebResourceUtil.cs
- ChoiceConverter.cs
- Activator.cs
- X509Certificate.cs
- UserMapPath.cs
- ThrowHelper.cs
- XmlSchemaGroup.cs
- RsaSecurityKey.cs
- BypassElement.cs
- ExpressionBuilder.cs
- Validator.cs
- IssuanceLicense.cs
- ExceptionHandler.cs
- WebPartCloseVerb.cs
- AutoSizeComboBox.cs
- BitmapFrame.cs
- CLSCompliantAttribute.cs
- Identity.cs
- SupportingTokenSecurityTokenResolver.cs
- DragDeltaEventArgs.cs
- _ConnectStream.cs
- MonthCalendarDesigner.cs
- KeyValueConfigurationElement.cs
- CheckableControlBaseAdapter.cs
- DefaultValueTypeConverter.cs
- Array.cs
- DataGridViewCell.cs
- sqlcontext.cs
- SmiRequestExecutor.cs
- ProjectionPathSegment.cs
- CollectionViewGroupInternal.cs
- ApplicationProxyInternal.cs
- TextBoxRenderer.cs
- SqlReorderer.cs
- BitmapEffectDrawingContextState.cs
- UnsafeNativeMethods.cs
- EUCJPEncoding.cs
- InternalCompensate.cs
- JournalEntry.cs
- AttributeAction.cs
- FrameDimension.cs
- HttpPostLocalhostServerProtocol.cs
- XmlDocument.cs
- StorageAssociationTypeMapping.cs
- SafeLibraryHandle.cs
- EntitySetDataBindingList.cs
- XmlSchema.cs
- ProcessHost.cs
- WaitForChangedResult.cs
- WriteTimeStream.cs
- SmiEventStream.cs
- DiffuseMaterial.cs
- AvTraceFormat.cs
- altserialization.cs
- PackagePart.cs
- ChannelManager.cs
- AsyncOperationManager.cs
- dbenumerator.cs
- EventRouteFactory.cs
- ComponentChangingEvent.cs
- StringAnimationBase.cs
- UniqueEventHelper.cs
- OleDbParameter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ManagementBaseObject.cs
- RayHitTestParameters.cs
- ScriptReferenceEventArgs.cs
- DataViewListener.cs
- ManipulationCompletedEventArgs.cs
- CapabilitiesRule.cs
- SqlVersion.cs
- TextHidden.cs
- CodeMemberProperty.cs
- SequentialActivityDesigner.cs