Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / MaskInputRejectedEventArgs.cs / 1305376 / 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
- DESCryptoServiceProvider.cs
- SelectionItemPattern.cs
- DetailsView.cs
- SafeHGlobalHandleCritical.cs
- PerformanceCounterPermission.cs
- FacetValueContainer.cs
- Persist.cs
- SafeSecurityHandles.cs
- XmlStreamNodeWriter.cs
- SmtpNetworkElement.cs
- TransformerTypeCollection.cs
- XmlFormatExtensionPointAttribute.cs
- SafeFileHandle.cs
- CodeCommentStatement.cs
- ImageSourceConverter.cs
- LoadRetryAsyncResult.cs
- HttpProfileBase.cs
- PngBitmapDecoder.cs
- CorrelationManager.cs
- SharedStatics.cs
- HttpPostClientProtocol.cs
- MsmqInputSessionChannel.cs
- FunctionGenerator.cs
- MediaEntryAttribute.cs
- SynchronizationContextHelper.cs
- LineUtil.cs
- SQLResource.cs
- ThreadExceptionEvent.cs
- GlyphCache.cs
- TextTreeExtractElementUndoUnit.cs
- DataTable.cs
- SaveFileDialog.cs
- RelationshipManager.cs
- ValidationContext.cs
- ReachBasicContext.cs
- ProfileInfo.cs
- MouseGesture.cs
- ISAPIRuntime.cs
- CollectionContainer.cs
- Inflater.cs
- MsmqIntegrationChannelListener.cs
- SafeMemoryMappedFileHandle.cs
- Point3DValueSerializer.cs
- DetailsViewCommandEventArgs.cs
- ExpressionLink.cs
- TripleDESCryptoServiceProvider.cs
- SchemaElementDecl.cs
- LogAppendAsyncResult.cs
- WebServiceHostFactory.cs
- ElementProxy.cs
- AttachedPropertyBrowsableAttribute.cs
- Point3D.cs
- ConfigurationSchemaErrors.cs
- Table.cs
- FilteredDataSetHelper.cs
- SiteMapHierarchicalDataSourceView.cs
- DBBindings.cs
- QilIterator.cs
- DataControlLinkButton.cs
- OdbcConnection.cs
- FontStretch.cs
- BooleanFacetDescriptionElement.cs
- BatchStream.cs
- IMembershipProvider.cs
- SortKey.cs
- PagerSettings.cs
- ReadOnlyCollection.cs
- GeometryHitTestResult.cs
- LongValidator.cs
- latinshape.cs
- SafeSystemMetrics.cs
- AtomPub10CategoriesDocumentFormatter.cs
- Compiler.cs
- TransformConverter.cs
- ReadOnlyKeyedCollection.cs
- ContextQuery.cs
- NavigationCommands.cs
- RuleRef.cs
- BinHexEncoding.cs
- Oid.cs
- TextSearch.cs
- AnnotationService.cs
- DocobjHost.cs
- QilTypeChecker.cs
- DupHandleConnectionReader.cs
- XmlDocumentFieldSchema.cs
- LayoutTableCell.cs
- CounterCreationData.cs
- EventDescriptor.cs
- SiteMapDataSource.cs
- FieldAccessException.cs
- GridViewColumn.cs
- DomNameTable.cs
- DataGridViewSortCompareEventArgs.cs
- CompiledRegexRunnerFactory.cs
- SHA512Managed.cs
- SoapCodeExporter.cs
- EventItfInfo.cs
- ToolStripSplitStackLayout.cs
- WebRequestModuleElement.cs