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
- HtmlTableRowCollection.cs
- IndependentlyAnimatedPropertyMetadata.cs
- TypedReference.cs
- UrlMappingsModule.cs
- WebRequestModulesSection.cs
- PathFigureCollection.cs
- TrackingServices.cs
- DataGridViewCellConverter.cs
- WmlControlAdapter.cs
- GridViewDeletedEventArgs.cs
- SctClaimSerializer.cs
- SdlChannelSink.cs
- SystemResourceKey.cs
- BooleanConverter.cs
- IsolatedStorageException.cs
- ToolStripLocationCancelEventArgs.cs
- LicenseProviderAttribute.cs
- ControlOperationInvoker.cs
- ListSortDescription.cs
- DllHostedComPlusServiceHost.cs
- DataGridTable.cs
- WsdlImporterElementCollection.cs
- Stack.cs
- SchemaMapping.cs
- DbUpdateCommandTree.cs
- CheckedPointers.cs
- BufferModeSettings.cs
- XmlBinaryReader.cs
- Classification.cs
- DataExpression.cs
- PackWebRequestFactory.cs
- XPathNodeList.cs
- COM2PropertyDescriptor.cs
- Hashtable.cs
- BulletChrome.cs
- NetPeerTcpBindingElement.cs
- VisualCollection.cs
- CompressStream.cs
- WizardPanel.cs
- OleStrCAMarshaler.cs
- CustomErrorsSection.cs
- WindowsListViewItemCheckBox.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- HighlightVisual.cs
- COM2PictureConverter.cs
- Script.cs
- TypedTableBaseExtensions.cs
- CopyNodeSetAction.cs
- DataContractSerializerSection.cs
- ZipIOCentralDirectoryFileHeader.cs
- SuppressIldasmAttribute.cs
- StringTraceRecord.cs
- objectresult_tresulttype.cs
- UpDownBaseDesigner.cs
- SystemIPGlobalStatistics.cs
- COM2ExtendedBrowsingHandler.cs
- HttpCacheParams.cs
- ScriptBehaviorDescriptor.cs
- ClientRoleProvider.cs
- PreloadedPackages.cs
- PropertyInfo.cs
- PasswordPropertyTextAttribute.cs
- TextTreeUndoUnit.cs
- TitleStyle.cs
- PopupRoot.cs
- SecurityUtils.cs
- DataObject.cs
- mediaeventargs.cs
- OperatingSystem.cs
- LoggedException.cs
- Normalization.cs
- UpdateException.cs
- WaitHandle.cs
- FileEnumerator.cs
- SqlDataSourceFilteringEventArgs.cs
- CalendarAutoFormatDialog.cs
- SmtpReplyReader.cs
- SourceLocation.cs
- ObjectQueryState.cs
- TableLayoutPanelCellPosition.cs
- ControlUtil.cs
- DataGridViewRowsRemovedEventArgs.cs
- SettingsPropertyValue.cs
- CodeEventReferenceExpression.cs
- ComponentCollection.cs
- TreeViewEvent.cs
- ExitEventArgs.cs
- Vars.cs
- PowerStatus.cs
- ModuleBuilder.cs
- PlaceHolder.cs
- IListConverters.cs
- ExtractorMetadata.cs
- EventlogProvider.cs
- FrugalMap.cs
- ApplicationServiceManager.cs
- SendAgentStatusRequest.cs
- _DisconnectOverlappedAsyncResult.cs
- HMACSHA384.cs
- ExistsInCollection.cs