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
- WebCategoryAttribute.cs
- ProtectedConfigurationSection.cs
- PropertyTab.cs
- ProgramNode.cs
- StructuralComparisons.cs
- CompilationUnit.cs
- UserControlCodeDomTreeGenerator.cs
- OrderByQueryOptionExpression.cs
- GraphicsContext.cs
- Timeline.cs
- CrossAppDomainChannel.cs
- EditorZone.cs
- IDictionary.cs
- MenuItemCollectionEditorDialog.cs
- SQLStringStorage.cs
- LongPath.cs
- TableLayoutSettingsTypeConverter.cs
- SQLChars.cs
- ResourceManagerWrapper.cs
- UnknownBitmapDecoder.cs
- Convert.cs
- HandlerElement.cs
- DrawingContextDrawingContextWalker.cs
- Utils.cs
- ObjectTag.cs
- ApplicationCommands.cs
- ToolStripRendererSwitcher.cs
- Timeline.cs
- List.cs
- WindowsSpinner.cs
- DrawingContext.cs
- Rotation3D.cs
- FormViewUpdateEventArgs.cs
- NameSpaceEvent.cs
- SrgsDocument.cs
- DataGridViewHeaderCell.cs
- UnsafeNativeMethods.cs
- Activity.cs
- PropertyEmitter.cs
- WorkflowLayouts.cs
- coordinator.cs
- TextBox.cs
- ClonableStack.cs
- ServicesSection.cs
- ButtonBaseAdapter.cs
- GcSettings.cs
- SearchForVirtualItemEventArgs.cs
- Validator.cs
- RemoteWebConfigurationHostServer.cs
- MailWebEventProvider.cs
- PeerCollaborationPermission.cs
- FixedStringLookup.cs
- BitmapCodecInfoInternal.cs
- TypeExtension.cs
- GroupBoxRenderer.cs
- HMACRIPEMD160.cs
- XmlNamedNodeMap.cs
- ComponentCollection.cs
- InteropExecutor.cs
- JsonReader.cs
- InertiaExpansionBehavior.cs
- SystemInfo.cs
- MsdtcClusterUtils.cs
- Keywords.cs
- WebPartRestoreVerb.cs
- XmlTextReader.cs
- MexBindingElement.cs
- Wildcard.cs
- AssertUtility.cs
- DbConnectionClosed.cs
- TableLayout.cs
- PrintSchema.cs
- AssemblyResourceLoader.cs
- RootBrowserWindowProxy.cs
- SqlMethodAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- MemoryMappedViewAccessor.cs
- Repeater.cs
- StructuredType.cs
- XXXOnTypeBuilderInstantiation.cs
- ExitEventArgs.cs
- FormParameter.cs
- LinearGradientBrush.cs
- SourceSwitch.cs
- WebPartCancelEventArgs.cs
- datacache.cs
- SourceChangedEventArgs.cs
- ScriptReferenceEventArgs.cs
- PathSegmentCollection.cs
- SqlSelectStatement.cs
- WriteTimeStream.cs
- EdmSchemaError.cs
- ReadOnlyDataSource.cs
- ConvertTextFrag.cs
- PermissionSetEnumerator.cs
- QualifiedCellIdBoolean.cs
- DialogDivider.cs
- M3DUtil.cs
- HttpModulesSection.cs
- PropertyCollection.cs