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
- Polygon.cs
- HostingEnvironment.cs
- QuestionEventArgs.cs
- UseAttributeSetsAction.cs
- TableDesigner.cs
- NoneExcludedImageIndexConverter.cs
- DragEventArgs.cs
- XslCompiledTransform.cs
- Viewport2DVisual3D.cs
- Encoder.cs
- TaiwanCalendar.cs
- ColorAnimationUsingKeyFrames.cs
- Style.cs
- DrawingGroupDrawingContext.cs
- Separator.cs
- EncryptedPackage.cs
- ConfigXmlCDataSection.cs
- PositiveTimeSpanValidatorAttribute.cs
- FastPropertyAccessor.cs
- ActivityExecutorSurrogate.cs
- EntitySqlQueryBuilder.cs
- GlyphInfoList.cs
- CaseExpr.cs
- AuthenticateEventArgs.cs
- LoginCancelEventArgs.cs
- PersonalizationStateInfoCollection.cs
- FixUpCollection.cs
- _Connection.cs
- InstalledFontCollection.cs
- WebPartActionVerb.cs
- HandleRef.cs
- ToolTipService.cs
- ImmutableObjectAttribute.cs
- FormsAuthenticationUserCollection.cs
- CodeMemberProperty.cs
- Control.cs
- StringConcat.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Constraint.cs
- ScrollPatternIdentifiers.cs
- ModelProperty.cs
- EntitySet.cs
- WebPartExportVerb.cs
- ObjectAnimationBase.cs
- SecurityTokenInclusionMode.cs
- GenericParameterDataContract.cs
- SingleConverter.cs
- _ConnectOverlappedAsyncResult.cs
- AudioDeviceOut.cs
- PreservationFileWriter.cs
- InfoCardKeyedHashAlgorithm.cs
- WindowsMenu.cs
- ISAPIRuntime.cs
- String.cs
- MetadataProperty.cs
- Overlapped.cs
- StyleCollection.cs
- Object.cs
- SubMenuStyle.cs
- RecommendedAsConfigurableAttribute.cs
- CssClassPropertyAttribute.cs
- Bold.cs
- SafeNativeMethods.cs
- XhtmlBasicValidationSummaryAdapter.cs
- XmlSchemaAttributeGroupRef.cs
- AbsoluteQuery.cs
- UrlPath.cs
- RelatedPropertyManager.cs
- WasAdminWrapper.cs
- SamlAction.cs
- XmlEntityReference.cs
- GridViewSelectEventArgs.cs
- BinHexDecoder.cs
- ClosableStream.cs
- TcpTransportManager.cs
- EditorOptionAttribute.cs
- PaginationProgressEventArgs.cs
- FormatVersion.cs
- WebResponse.cs
- WindowsHyperlink.cs
- InlinedAggregationOperatorEnumerator.cs
- FilterEventArgs.cs
- QEncodedStream.cs
- TemplateControl.cs
- ListDictionary.cs
- RootBrowserWindow.cs
- ViewManager.cs
- PassportPrincipal.cs
- XmlSchemaException.cs
- FilteredReadOnlyMetadataCollection.cs
- SingleResultAttribute.cs
- TextRangeEditTables.cs
- AdornedElementPlaceholder.cs
- path.cs
- PrintDialog.cs
- XmlBindingWorker.cs
- ConfigurationSettings.cs
- DbMetaDataCollectionNames.cs
- IdentityModelDictionary.cs
- OciEnlistContext.cs