Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsAttributeDictionary.cs
- MergeFailedEvent.cs
- HttpMethodAttribute.cs
- FileRecordSequenceCompletedAsyncResult.cs
- StringSource.cs
- ContainerControl.cs
- Material.cs
- ByteStreamBufferedMessageData.cs
- FirstMatchCodeGroup.cs
- AttributeSetAction.cs
- RMEnrollmentPage3.cs
- Oid.cs
- DataBoundLiteralControl.cs
- FlowNode.cs
- RequestTimeoutManager.cs
- ViewBox.cs
- DataGridViewRowEventArgs.cs
- FormViewInsertedEventArgs.cs
- XMLSyntaxException.cs
- WindowsGraphicsCacheManager.cs
- BindableTemplateBuilder.cs
- ArrayTypeMismatchException.cs
- GatewayDefinition.cs
- StateMachineDesignerPaint.cs
- HtmlEmptyTagControlBuilder.cs
- ComponentResourceKeyConverter.cs
- ItemsControlAutomationPeer.cs
- Vector3DKeyFrameCollection.cs
- NegotiateStream.cs
- JobInputBins.cs
- listitem.cs
- ImmutableAssemblyCacheEntry.cs
- XmlSerializerOperationGenerator.cs
- ZipIOExtraFieldPaddingElement.cs
- DescendentsWalker.cs
- AlphaSortedEnumConverter.cs
- FlowDocumentPage.cs
- XmlSchemaElement.cs
- TraceSection.cs
- BaseCollection.cs
- ViewManager.cs
- ResourceLoader.cs
- ISFTagAndGuidCache.cs
- RequiredAttributeAttribute.cs
- ComponentResourceKeyConverter.cs
- ToolZone.cs
- SecurityIdentifierConverter.cs
- PartialTrustVisibleAssembliesSection.cs
- Ref.cs
- XPathNavigatorKeyComparer.cs
- HMACSHA256.cs
- DivideByZeroException.cs
- TableLayout.cs
- TabletDeviceInfo.cs
- ReflectionUtil.cs
- OpenFileDialog.cs
- DataGridViewImageCell.cs
- CodeGeneratorOptions.cs
- Point4DConverter.cs
- WebPartCollection.cs
- ActivityExecutionFilter.cs
- DocumentEventArgs.cs
- ReadOnlyDataSource.cs
- ListControl.cs
- CustomExpressionEventArgs.cs
- ExceptionUtility.cs
- TypedReference.cs
- XmlSchemaSet.cs
- HttpUnhandledOperationInvoker.cs
- ConnectionPointCookie.cs
- CookieParameter.cs
- StringAnimationUsingKeyFrames.cs
- RuleSet.cs
- PropertyGridCommands.cs
- BitConverter.cs
- WindowsAuthenticationModule.cs
- ComponentChangedEvent.cs
- AssociationProvider.cs
- TableLayoutPanel.cs
- ButtonField.cs
- BitmapVisualManager.cs
- ZipIOExtraFieldElement.cs
- OrderedDictionary.cs
- Substitution.cs
- CompModSwitches.cs
- HtmlLink.cs
- BamlRecordWriter.cs
- InputBuffer.cs
- ProfileEventArgs.cs
- ParserStreamGeometryContext.cs
- EditorZone.cs
- MultiViewDesigner.cs
- FontWeight.cs
- XPathAxisIterator.cs
- DataListItem.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- XmlCharCheckingReader.cs
- Int64Animation.cs
- WhitespaceSignificantCollectionAttribute.cs
- Crypto.cs