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
- OleDbErrorCollection.cs
- _ConnectOverlappedAsyncResult.cs
- NonDualMessageSecurityOverHttp.cs
- ApplicationManager.cs
- BaseParser.cs
- SqlUnionizer.cs
- XamlRtfConverter.cs
- ReaderContextStackData.cs
- DataServicePagingProviderWrapper.cs
- Decoder.cs
- MissingManifestResourceException.cs
- XamlHostingSection.cs
- SystemWebExtensionsSectionGroup.cs
- XhtmlBasicTextBoxAdapter.cs
- JoinQueryOperator.cs
- securitymgrsite.cs
- KoreanLunisolarCalendar.cs
- InvalidWMPVersionException.cs
- CodeDefaultValueExpression.cs
- SmtpReplyReader.cs
- SynchronizationContext.cs
- Pair.cs
- Soap.cs
- Marshal.cs
- WindowsToolbarAsMenu.cs
- ServiceOperationInfoTypeConverter.cs
- PresentationAppDomainManager.cs
- KoreanCalendar.cs
- WebPartEditVerb.cs
- AmbientLight.cs
- UTF7Encoding.cs
- GenerateHelper.cs
- SplineKeyFrames.cs
- Rect.cs
- EventLogConfiguration.cs
- EntryPointNotFoundException.cs
- XhtmlTextWriter.cs
- DocumentOrderQuery.cs
- SystemIPv4InterfaceProperties.cs
- Receive.cs
- DesignerProperties.cs
- FixedTextContainer.cs
- BackStopAuthenticationModule.cs
- DataGridAddNewRow.cs
- EventLogInformation.cs
- _FixedSizeReader.cs
- SimpleHandlerFactory.cs
- _SafeNetHandles.cs
- PathSegment.cs
- VisualBrush.cs
- bindurihelper.cs
- ApplicationSecurityManager.cs
- DocumentReference.cs
- DiagnosticTraceSource.cs
- AuthorizationSection.cs
- WindowsGraphics2.cs
- Tracking.cs
- EdmFunction.cs
- PromptEventArgs.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ErasingStroke.cs
- ContentElement.cs
- SessionEndingCancelEventArgs.cs
- Paragraph.cs
- HtmlTableRowCollection.cs
- RawStylusSystemGestureInputReport.cs
- UserControl.cs
- MaterialCollection.cs
- SecurityChannel.cs
- ListViewCommandEventArgs.cs
- ToolStripDropDownDesigner.cs
- HealthMonitoringSectionHelper.cs
- FixedSchema.cs
- SamlAuthorizationDecisionClaimResource.cs
- RecordManager.cs
- CodeObject.cs
- WeakHashtable.cs
- IntMinMaxAggregationOperator.cs
- XmlAttribute.cs
- PlatformNotSupportedException.cs
- AdapterUtil.cs
- QualificationDataAttribute.cs
- EnterpriseServicesHelper.cs
- SiteMapNodeItemEventArgs.cs
- XmlTextAttribute.cs
- TextTreeUndo.cs
- SystemNetHelpers.cs
- WebPartVerbsEventArgs.cs
- BindToObject.cs
- ObjectListFieldsPage.cs
- TypeListConverter.cs
- XmlSchemaSearchPattern.cs
- Activity.cs
- FormViewDeletedEventArgs.cs
- KeyValuePairs.cs
- IssuedTokenParametersEndpointAddressElement.cs
- WriteStateInfoBase.cs
- OleDbPermission.cs
- PackWebRequestFactory.cs
- ListItem.cs