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 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RegistrationServices.cs
- QilSortKey.cs
- AnnotationComponentManager.cs
- UIElementParagraph.cs
- TableRowCollection.cs
- TimerElapsedEvenArgs.cs
- BuildProviderAppliesToAttribute.cs
- Exceptions.cs
- ResourceBinder.cs
- IPEndPoint.cs
- EventLogPermissionHolder.cs
- TextEffectCollection.cs
- NamespaceDecl.cs
- IsolatedStorageFilePermission.cs
- PasswordBox.cs
- Win32Exception.cs
- Normalization.cs
- RepeaterItemCollection.cs
- SiteMembershipCondition.cs
- ProfilePropertyNameValidator.cs
- HostedTcpTransportManager.cs
- PropertyContainer.cs
- NetDataContractSerializer.cs
- ActivityPreviewDesigner.cs
- UmAlQuraCalendar.cs
- MatrixTransform3D.cs
- Item.cs
- PartialCachingControl.cs
- WebServicesSection.cs
- PolicyManager.cs
- PenLineJoinValidation.cs
- CapacityStreamGeometryContext.cs
- SafeProcessHandle.cs
- ButtonBase.cs
- PrimitiveType.cs
- QueryOpeningEnumerator.cs
- MenuItem.cs
- SoapFormatterSinks.cs
- wmiutil.cs
- FieldTemplateUserControl.cs
- AutomationProperties.cs
- XmlSerializerImportOptions.cs
- Int32Rect.cs
- BamlLocalizer.cs
- BamlResourceDeserializer.cs
- SafeEventLogReadHandle.cs
- PointLight.cs
- Content.cs
- MergablePropertyAttribute.cs
- DataRelationCollection.cs
- EmptyEnumerator.cs
- InvokeWebServiceDesigner.cs
- WmlControlAdapter.cs
- Pair.cs
- KeyValueInternalCollection.cs
- ImpersonationOption.cs
- MarshalDirectiveException.cs
- SqlWebEventProvider.cs
- EdmComplexPropertyAttribute.cs
- DataSourceHelper.cs
- designeractionbehavior.cs
- GeometryModel3D.cs
- ComponentCommands.cs
- ToolboxItem.cs
- LookupTables.cs
- SqlCommand.cs
- ChangePassword.cs
- DispatchProxy.cs
- ResourceDictionaryCollection.cs
- SqlCharStream.cs
- SecurityDescriptor.cs
- DesignerWebPartChrome.cs
- ReliableSession.cs
- BuildProviderCollection.cs
- BrowserCapabilitiesFactory.cs
- DetailsViewDeleteEventArgs.cs
- ListViewItemEventArgs.cs
- Highlights.cs
- WindowsRichEdit.cs
- BuildProvider.cs
- SqlServer2KCompatibilityCheck.cs
- BlurBitmapEffect.cs
- FontUnitConverter.cs
- RightsManagementEncryptedStream.cs
- AppDomainAttributes.cs
- entityreference_tresulttype.cs
- SignedXml.cs
- _UncName.cs
- FormViewDesigner.cs
- CorePropertiesFilter.cs
- ColorPalette.cs
- SelectionRangeConverter.cs
- DataGridViewSortCompareEventArgs.cs
- XamlTypeMapper.cs
- TextComposition.cs
- ControlsConfig.cs
- ResourcePart.cs
- InfiniteIntConverter.cs
- WindowsEditBoxRange.cs
- EdmTypeAttribute.cs