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
- Int16.cs
- DataGridColumnCollection.cs
- ValueUtilsSmi.cs
- ObjectListDesigner.cs
- Base64Encoder.cs
- ConsoleTraceListener.cs
- StructuralType.cs
- Page.cs
- EmptyQuery.cs
- ReadOnlyPropertyMetadata.cs
- PathFigureCollectionConverter.cs
- TableChangeProcessor.cs
- PrimitiveCodeDomSerializer.cs
- InputScopeNameConverter.cs
- MailWebEventProvider.cs
- WebPartsPersonalization.cs
- GlobalProxySelection.cs
- SecurityResources.cs
- SchemaType.cs
- MatrixTransform.cs
- PersonalizationStateInfo.cs
- SqlVisitor.cs
- AssemblyBuilder.cs
- ValidatingReaderNodeData.cs
- EntityDataSourceState.cs
- VisualStyleRenderer.cs
- EmptyStringExpandableObjectConverter.cs
- DirectoryNotFoundException.cs
- EdmSchemaError.cs
- Dictionary.cs
- SkewTransform.cs
- FixedFlowMap.cs
- Speller.cs
- ScriptingRoleServiceSection.cs
- OleDbStruct.cs
- MediaSystem.cs
- RedBlackList.cs
- smtpconnection.cs
- TaskbarItemInfo.cs
- ProgressBarAutomationPeer.cs
- DispatcherProcessingDisabled.cs
- FrameSecurityDescriptor.cs
- BookmarkOptionsHelper.cs
- PrintDialog.cs
- MasterPageBuildProvider.cs
- XmlSchemaSimpleContentExtension.cs
- GradientStop.cs
- SafeArrayRankMismatchException.cs
- SecurityResources.cs
- ViewCellSlot.cs
- ACE.cs
- InteropExecutor.cs
- Html32TextWriter.cs
- CheckBox.cs
- IntSecurity.cs
- WindowsRichEdit.cs
- SafePEFileHandle.cs
- SoapIgnoreAttribute.cs
- SignatureResourcePool.cs
- XamlStyleSerializer.cs
- PartitionResolver.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Attributes.cs
- DebugController.cs
- SecurityUtils.cs
- ProgressBarRenderer.cs
- SQLInt16Storage.cs
- NullableIntMinMaxAggregationOperator.cs
- ColorMap.cs
- WebPartHelpVerb.cs
- CollectionChangedEventManager.cs
- XslAstAnalyzer.cs
- glyphs.cs
- GroupStyle.cs
- ServiceAppDomainAssociationProvider.cs
- ActivityIdHeader.cs
- CounterSetInstance.cs
- Figure.cs
- columnmapkeybuilder.cs
- EmulateRecognizeCompletedEventArgs.cs
- DataGridItemCollection.cs
- CorrelationResolver.cs
- RemotingException.cs
- FixedSchema.cs
- XpsFilter.cs
- ComboBox.cs
- SamlEvidence.cs
- ResourcesChangeInfo.cs
- OrderingQueryOperator.cs
- RegionData.cs
- DataGridViewIntLinkedList.cs
- DynamicResourceExtensionConverter.cs
- UInt32.cs
- NullableConverter.cs
- RoutingService.cs
- ClientBuildManager.cs
- HandlerWithFactory.cs
- WebSysDisplayNameAttribute.cs
- Viewport3DAutomationPeer.cs
- RankException.cs