Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationTypes / System / Windows / Automation / ElementNotEnabledException.cs / 1 / ElementNotEnabledException.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Exception thrown when client attemps to interact with a non- // enabled control (eg. Invoke a non-enabled button) // // History: // 08/06/2003 : [....] Created // //--------------------------------------------------------------------------- using System.Windows.Automation; using System; using System.Runtime.Serialization; using System.Security.Permissions; using MS.Win32; using MS.Internal.Automation; namespace System.Windows.Automation { ////// This exception is thrown when client code attemps to manipulate /// an element or control that is currently not enabled. /// [Serializable] #if (INTERNAL_COMPILE) internal class ElementNotEnabledException : InvalidOperationException #else public class ElementNotEnabledException : InvalidOperationException #endif { ////// Default constructor /// public ElementNotEnabledException() : base(SR.Get(SRID.ElementNotEnabled)) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTENABLED; } ////// constructor /// /// public ElementNotEnabledException(String message) : base(message) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTENABLED; } ////// constructor /// /// /// public ElementNotEnabledException(string message, Exception innerException) : base(message, innerException) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTENABLED; } ////// Constructor for serialization /// //CASRemoval:[SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)] protected ElementNotEnabledException(SerializationInfo info, StreamingContext context) : base(info, context) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTENABLED; } ////// Populates a SerializationInfo with the data needed to serialize the target object. /// /// The SerializationInfo to populate with data. /// The destination for this serialization. [SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); } } } // 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
- SectionRecord.cs
- ServiceObjectContainer.cs
- StylusPointProperty.cs
- TypedTableBase.cs
- MenuItemStyleCollection.cs
- SiteMapPath.cs
- EntityDataSourceSelectingEventArgs.cs
- RegexCompiler.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ThaiBuddhistCalendar.cs
- TransformCollection.cs
- TextServicesPropertyRanges.cs
- DynamicResourceExtensionConverter.cs
- FlowLayoutSettings.cs
- LogicalExpressionEditor.cs
- CacheDependency.cs
- dbdatarecord.cs
- Renderer.cs
- Track.cs
- GetWinFXPath.cs
- SyndicationDeserializer.cs
- CustomTypeDescriptor.cs
- COAUTHIDENTITY.cs
- AccessText.cs
- PlacementWorkspace.cs
- SqlRetyper.cs
- TextLine.cs
- Variant.cs
- HtmlShim.cs
- ContainerFilterService.cs
- WindowsProgressbar.cs
- Opcode.cs
- fixedPageContentExtractor.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- OrderedDictionary.cs
- ParseHttpDate.cs
- ClientSettingsProvider.cs
- StrokeCollection.cs
- SubclassTypeValidator.cs
- ObjectToken.cs
- AutomationElementIdentifiers.cs
- WriteLine.cs
- DynamicActionMessageFilter.cs
- SetterBaseCollection.cs
- BinaryConverter.cs
- GridViewEditEventArgs.cs
- ButtonRenderer.cs
- FixedSOMGroup.cs
- PropertyChangeTracker.cs
- EntityDataSourceDesigner.cs
- WebPartEditorCancelVerb.cs
- ColumnHeaderConverter.cs
- MetaModel.cs
- FilteredReadOnlyMetadataCollection.cs
- FormatConvertedBitmap.cs
- ErrorTableItemStyle.cs
- AsmxEndpointPickerExtension.cs
- WebRequestModulesSection.cs
- HttpModuleActionCollection.cs
- ActivityMarkupSerializationProvider.cs
- TypeName.cs
- MenuRenderer.cs
- DetailsViewPagerRow.cs
- DateTimeOffset.cs
- DataGridViewRowPrePaintEventArgs.cs
- FontDialog.cs
- XmlMembersMapping.cs
- Line.cs
- WorkflowQueuingService.cs
- PropertyValueUIItem.cs
- InstancePersistenceException.cs
- XmlSchemas.cs
- FontFamily.cs
- ListCollectionView.cs
- PerformanceCounter.cs
- DataGridViewDataErrorEventArgs.cs
- AndMessageFilter.cs
- ElapsedEventArgs.cs
- RegexCharClass.cs
- RectAnimation.cs
- dsa.cs
- ExpressionList.cs
- DataGridViewMethods.cs
- XamlParser.cs
- OutputCacheSection.cs
- DbSetClause.cs
- objectquery_tresulttype.cs
- RNGCryptoServiceProvider.cs
- OutOfProcStateClientManager.cs
- CreateUserErrorEventArgs.cs
- MetadataSource.cs
- PropertyDescriptorGridEntry.cs
- ComboBox.cs
- Control.cs
- DefaultBinder.cs
- Rights.cs
- XamlHostingSection.cs
- PerformanceCounterManager.cs
- RepeatButton.cs
- RequestCachePolicy.cs