Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / MaskInputRejectedEventArgs.cs / 1 / MaskInputRejectedEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System.ComponentModel;
using System.Diagnostics;
///
/// MaskInputRejectedEventArgs. Provides data for the MaskInputRejected event.
///
public class MaskInputRejectedEventArgs : EventArgs
{
private int position;
MaskedTextResultHint hint;
public MaskInputRejectedEventArgs(int position, MaskedTextResultHint rejectionHint)
{
Debug.Assert(!MaskedTextProvider.GetOperationResultFromHint(rejectionHint), "Rejection hint is not on a failure.");
this.position = position;
this.hint = rejectionHint;
}
///
/// The position where the test failed the mask constraint.
///
public int Position
{
get
{
return this.position;
}
}
///
/// Retreives a hint on why the input is rejected.
///
public MaskedTextResultHint RejectionHint
{
get
{
return this.hint;
}
}
}
}
// 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
- ZipFileInfo.cs
- DesignTimeType.cs
- UnsafeNativeMethods.cs
- FixedStringLookup.cs
- ALinqExpressionVisitor.cs
- CountAggregationOperator.cs
- XmlReturnWriter.cs
- InvokeMemberBinder.cs
- WindowsFormsSectionHandler.cs
- ExpandableObjectConverter.cs
- DecimalConstantAttribute.cs
- PasswordPropertyTextAttribute.cs
- ReflectEventDescriptor.cs
- TypeBuilder.cs
- ToolStripButton.cs
- DataGridViewDataConnection.cs
- CompilerWrapper.cs
- RadioButton.cs
- RSAOAEPKeyExchangeFormatter.cs
- ScaleTransform.cs
- InstanceKeyCollisionException.cs
- PreviewPrintController.cs
- XamlStream.cs
- SQLGuid.cs
- TraceProvider.cs
- AnimationStorage.cs
- ContextDataSourceContextData.cs
- DataRelationCollection.cs
- UntrustedRecipientException.cs
- ComboBoxRenderer.cs
- SQLChars.cs
- SimpleFieldTemplateUserControl.cs
- FormViewDeleteEventArgs.cs
- GroupItemAutomationPeer.cs
- BlockExpression.cs
- COM2FontConverter.cs
- RowVisual.cs
- DPCustomTypeDescriptor.cs
- IPEndPointCollection.cs
- ping.cs
- FormsAuthenticationEventArgs.cs
- SelectingProviderEventArgs.cs
- QuestionEventArgs.cs
- EmptyElement.cs
- NamespaceExpr.cs
- MouseWheelEventArgs.cs
- DesignerGenericWebPart.cs
- AppDomainCompilerProxy.cs
- GeometryHitTestParameters.cs
- BooleanFunctions.cs
- WeakReferenceEnumerator.cs
- MessageQueuePermissionEntry.cs
- SqlBooleanMismatchVisitor.cs
- EnumBuilder.cs
- UnionCodeGroup.cs
- ChangeNode.cs
- CreateParams.cs
- LocalIdKeyIdentifierClause.cs
- LayoutManager.cs
- WebPartVerb.cs
- ChannelSinkStacks.cs
- SQLInt32.cs
- TypeNameConverter.cs
- SelfIssuedTokenFactoryCredential.cs
- EventItfInfo.cs
- DataTableMappingCollection.cs
- System.Data_BID.cs
- NamespaceQuery.cs
- XmlUrlResolver.cs
- TextRunProperties.cs
- ISCIIEncoding.cs
- ConnectionPointCookie.cs
- TableCellAutomationPeer.cs
- EditorBrowsableAttribute.cs
- Metadata.cs
- KeyEventArgs.cs
- SecurityManager.cs
- PtsContext.cs
- GradientBrush.cs
- ISAPIWorkerRequest.cs
- MultiView.cs
- TypeInitializationException.cs
- ConnectionsZone.cs
- ToolStripDropDown.cs
- ServerIdentity.cs
- DataGridViewElement.cs
- DesignerMetadata.cs
- MultipleFilterMatchesException.cs
- RegexInterpreter.cs
- CacheSection.cs
- SecUtil.cs
- ContentFilePart.cs
- XmlSchemaValidator.cs
- path.cs
- VectorCollectionValueSerializer.cs
- XmlProcessingInstruction.cs
- StrokeNodeOperations2.cs
- SoundPlayer.cs
- ProfileServiceManager.cs
- TextDecoration.cs