Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DbParameterCollectionHelper.cs
- DescendantBaseQuery.cs
- uribuilder.cs
- Vector3DAnimationBase.cs
- SqlProviderManifest.cs
- XamlTreeBuilder.cs
- ModelUIElement3D.cs
- XamlWriter.cs
- ChangeInterceptorAttribute.cs
- HandlerFactoryCache.cs
- Guid.cs
- XmlRawWriterWrapper.cs
- WmlValidationSummaryAdapter.cs
- FixUpCollection.cs
- SudsWriter.cs
- XmlSchemaExporter.cs
- NodeCounter.cs
- XamlSerializerUtil.cs
- RuntimeEnvironment.cs
- IgnoreSection.cs
- FormViewDeleteEventArgs.cs
- FrameworkElementAutomationPeer.cs
- LineGeometry.cs
- CompareInfo.cs
- MeshGeometry3D.cs
- DataServiceException.cs
- TypeElement.cs
- TrackingProfileSerializer.cs
- OracleCommandBuilder.cs
- Cursor.cs
- AuthenticationModuleElementCollection.cs
- TypeSystem.cs
- BorderGapMaskConverter.cs
- IIS7UserPrincipal.cs
- isolationinterop.cs
- ToolStripMenuItem.cs
- LostFocusEventManager.cs
- TextRangeEdit.cs
- ShutDownListener.cs
- InnerItemCollectionView.cs
- PackageProperties.cs
- PtsCache.cs
- MenuCommands.cs
- TdsParserStaticMethods.cs
- XmlEntityReference.cs
- ScrollProviderWrapper.cs
- BindingExpressionUncommonField.cs
- XomlDesignerLoader.cs
- SqlServer2KCompatibilityAnnotation.cs
- QualifierSet.cs
- TransactionScope.cs
- WebPartConnectionCollection.cs
- QuaternionAnimationBase.cs
- CharacterBufferReference.cs
- DataGridViewRowsRemovedEventArgs.cs
- ToolStripMenuItem.cs
- Utils.cs
- SQLBytesStorage.cs
- MetadataArtifactLoader.cs
- TableAdapterManagerMethodGenerator.cs
- tabpagecollectioneditor.cs
- DataGridViewIntLinkedList.cs
- SourceCollection.cs
- XmlObjectSerializerContext.cs
- CompiledIdentityConstraint.cs
- StateMachineWorkflowDesigner.cs
- TypeBuilderInstantiation.cs
- TextTreeTextBlock.cs
- DataGridTablesFactory.cs
- SchemaLookupTable.cs
- SharedPerformanceCounter.cs
- DataGridViewColumn.cs
- ElementMarkupObject.cs
- PolicyLevel.cs
- TagMapCollection.cs
- Message.cs
- RequestNavigateEventArgs.cs
- ListView.cs
- CompiledRegexRunnerFactory.cs
- FixedLineResult.cs
- CollectionBase.cs
- WizardStepBase.cs
- TransformProviderWrapper.cs
- CompilerErrorCollection.cs
- QuotedStringFormatReader.cs
- AssemblyFilter.cs
- CacheSection.cs
- WindowVisualStateTracker.cs
- CompositeScriptReferenceEventArgs.cs
- XmlDataLoader.cs
- WeakReferenceKey.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- FrugalMap.cs
- PeerApplicationLaunchInfo.cs
- XmlDataSourceView.cs
- AsymmetricSignatureFormatter.cs
- LedgerEntryCollection.cs
- BrushMappingModeValidation.cs
- ProxyManager.cs