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
- LocalFileSettingsProvider.cs
- CompModHelpers.cs
- AttributeQuery.cs
- WizardForm.cs
- PreloadedPackages.cs
- DefaultSettingsSection.cs
- PageParserFilter.cs
- StaticTextPointer.cs
- WpfPayload.cs
- ThousandthOfEmRealPoints.cs
- OleDbFactory.cs
- EditorAttribute.cs
- ItemsControl.cs
- TimelineGroup.cs
- DesignerTransactionCloseEvent.cs
- HideDisabledControlAdapter.cs
- DataObjectFieldAttribute.cs
- ToolStripOverflowButton.cs
- WebUtil.cs
- DataGridViewHeaderCell.cs
- FrugalList.cs
- ResourceExpressionEditorSheet.cs
- SchemaName.cs
- DbConnectionClosed.cs
- FacetValues.cs
- DomNameTable.cs
- SoapObjectReader.cs
- PrincipalPermission.cs
- MSAANativeProvider.cs
- TemplatePagerField.cs
- SchemaTableOptionalColumn.cs
- SafeNativeMethodsOther.cs
- Types.cs
- EventsTab.cs
- TableStyle.cs
- DesignerActionListCollection.cs
- ASCIIEncoding.cs
- SessionPageStatePersister.cs
- KeyFrames.cs
- RangeValidator.cs
- AppSecurityManager.cs
- SignatureToken.cs
- ConfigXmlText.cs
- CompilerCollection.cs
- StateChangeEvent.cs
- OdbcDataReader.cs
- coordinatorscratchpad.cs
- CheckBoxPopupAdapter.cs
- Win32Exception.cs
- Button.cs
- AnimationTimeline.cs
- OleDbRowUpdatedEvent.cs
- ChameleonKey.cs
- SamlSecurityToken.cs
- ClientBuildManager.cs
- contentDescriptor.cs
- CheckBoxList.cs
- DataKey.cs
- QueryStoreStatusRequest.cs
- VBIdentifierTrimConverter.cs
- GlyphsSerializer.cs
- ObjectView.cs
- SymbolMethod.cs
- XmlSchemaAnyAttribute.cs
- SmiXetterAccessMap.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CommonDialog.cs
- StringBuilder.cs
- InputGestureCollection.cs
- HtmlInputFile.cs
- CommandConverter.cs
- DbConnectionOptions.cs
- RelationshipEnd.cs
- TransactionFlowBindingElementImporter.cs
- ScriptResourceHandler.cs
- DataGridCommandEventArgs.cs
- PolicyLevel.cs
- JsonReaderDelegator.cs
- StringInfo.cs
- ValidationHelper.cs
- TypeListConverter.cs
- SimpleExpression.cs
- XmlCompatibilityReader.cs
- OutOfProcStateClientManager.cs
- X509ChainElement.cs
- SeekableReadStream.cs
- HostProtectionPermission.cs
- UTF8Encoding.cs
- ValidationEventArgs.cs
- CachedRequestParams.cs
- DBSqlParserColumn.cs
- DataFormats.cs
- CapabilitiesSection.cs
- ElementHost.cs
- EntityTypeEmitter.cs
- SocketSettings.cs
- XPathAncestorIterator.cs
- regiisutil.cs
- StylusPointDescription.cs
- WindowsListView.cs