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
- XmlArrayAttribute.cs
- ProtocolElementCollection.cs
- OdbcStatementHandle.cs
- QilDataSource.cs
- ReadOnlyCollectionBase.cs
- BufferedOutputStream.cs
- FormsIdentity.cs
- CrossContextChannel.cs
- elementinformation.cs
- AspNetCompatibilityRequirementsMode.cs
- Crypto.cs
- GeometryValueSerializer.cs
- XmlSerializableServices.cs
- XmlSchemaSimpleTypeList.cs
- FilterUserControlBase.cs
- ColumnMapCopier.cs
- ContainerControl.cs
- Trace.cs
- XmlSchemaFacet.cs
- ContentElementAutomationPeer.cs
- EventSetter.cs
- basenumberconverter.cs
- CodeExporter.cs
- MouseEvent.cs
- Mouse.cs
- DataGridViewCellMouseEventArgs.cs
- AsyncPostBackTrigger.cs
- DataAccessor.cs
- VectorCollection.cs
- ThousandthOfEmRealDoubles.cs
- EFDataModelProvider.cs
- NestedContainer.cs
- SecurityDocument.cs
- EmptyEnumerator.cs
- SQLDateTimeStorage.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DispatcherBuilder.cs
- StylusOverProperty.cs
- DesignerProperties.cs
- Scripts.cs
- EraserBehavior.cs
- PixelShader.cs
- CommonObjectSecurity.cs
- XmlChildNodes.cs
- RolePrincipal.cs
- DbMetaDataFactory.cs
- DeclaredTypeValidator.cs
- MergeFailedEvent.cs
- HtmlInputCheckBox.cs
- TraceLog.cs
- BitmapSource.cs
- FastPropertyAccessor.cs
- AnnotationService.cs
- CustomAttributeSerializer.cs
- PublisherIdentityPermission.cs
- TextParaLineResult.cs
- XmlCharType.cs
- ParentUndoUnit.cs
- DelayedRegex.cs
- UnsafeNativeMethods.cs
- RankException.cs
- PropertyDescriptorCollection.cs
- DataContext.cs
- TextParagraph.cs
- SqlDataSource.cs
- DataViewSettingCollection.cs
- BypassElementCollection.cs
- TcpChannelHelper.cs
- DashStyle.cs
- DataKeyArray.cs
- CollectionView.cs
- ResourceManager.cs
- RoleBoolean.cs
- ThreadAbortException.cs
- UseAttributeSetsAction.cs
- MexBindingBindingCollectionElement.cs
- InputReferenceExpression.cs
- PropagatorResult.cs
- XsltConvert.cs
- SessionEndedEventArgs.cs
- IntSumAggregationOperator.cs
- ProtocolsSection.cs
- initElementDictionary.cs
- XmlCharCheckingReader.cs
- XmlSignificantWhitespace.cs
- JsonWriter.cs
- WebRequestModuleElementCollection.cs
- StrokeIntersection.cs
- TypeResolvingOptionsAttribute.cs
- OrderPreservingMergeHelper.cs
- SolidColorBrush.cs
- GeneralTransform3DGroup.cs
- SqlInternalConnectionTds.cs
- EntityDataSourceDesignerHelper.cs
- LayoutInformation.cs
- RepeaterItemEventArgs.cs
- CanonicalXml.cs
- XmlDataCollection.cs
- UnsafeNativeMethods.cs
- DecodeHelper.cs