Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / 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 : BrendanM Created // //--------------------------------------------------------------------------- using System.Windows.Automation; using System; using System.Runtime.Serialization; using System.Security.Permissions; 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. //---------------------------------------------------------------------------- // //// 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 : BrendanM Created // //--------------------------------------------------------------------------- using System.Windows.Automation; using System; using System.Runtime.Serialization; using System.Security.Permissions; 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
- XmlChildEnumerator.cs
- DataGridSortCommandEventArgs.cs
- CommandSet.cs
- InstanceNameConverter.cs
- SqlRowUpdatingEvent.cs
- VersionedStreamOwner.cs
- HttpPostClientProtocol.cs
- XPathAncestorQuery.cs
- TCPClient.cs
- columnmapfactory.cs
- RequestQueryParser.cs
- StringComparer.cs
- EntityWithChangeTrackerStrategy.cs
- LoadGrammarCompletedEventArgs.cs
- DesignColumnCollection.cs
- MemberBinding.cs
- SamlSerializer.cs
- InvalidAsynchronousStateException.cs
- EditorPartCollection.cs
- XPathArrayIterator.cs
- SessionStateUtil.cs
- WindowsScrollBar.cs
- LocationUpdates.cs
- VectorKeyFrameCollection.cs
- ClassHandlersStore.cs
- controlskin.cs
- InertiaRotationBehavior.cs
- MatrixAnimationUsingKeyFrames.cs
- Property.cs
- NavigationWindow.cs
- TraceContextEventArgs.cs
- PerfProviderCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XamlSerializerUtil.cs
- StylesEditorDialog.cs
- BindToObject.cs
- ComEventsMethod.cs
- XmlSchemaIdentityConstraint.cs
- AddInIpcChannel.cs
- TextRangeSerialization.cs
- TreeViewDataItemAutomationPeer.cs
- ListItemsCollectionEditor.cs
- Assert.cs
- DateBoldEvent.cs
- CacheVirtualItemsEvent.cs
- SspiWrapper.cs
- ConstNode.cs
- xamlnodes.cs
- TreeNode.cs
- RemoteWebConfigurationHost.cs
- ObjectContextServiceProvider.cs
- ClientFormsIdentity.cs
- ServiceCredentialsElement.cs
- _BufferOffsetSize.cs
- InvalidPrinterException.cs
- ClockGroup.cs
- SeverityFilter.cs
- XmlSchemaSubstitutionGroup.cs
- MemberBinding.cs
- InternalUserCancelledException.cs
- Pair.cs
- SID.cs
- CorrelationResolver.cs
- TypeElementCollection.cs
- KeyPressEvent.cs
- FragmentNavigationEventArgs.cs
- TextEditorSelection.cs
- InstanceData.cs
- DPCustomTypeDescriptor.cs
- _Rfc2616CacheValidators.cs
- QueueProcessor.cs
- RangeContentEnumerator.cs
- BitVec.cs
- SystemUdpStatistics.cs
- FileNameEditor.cs
- BoundingRectTracker.cs
- StylusOverProperty.cs
- HtmlCalendarAdapter.cs
- MouseButtonEventArgs.cs
- RadioButton.cs
- TypeDefinition.cs
- XsdDateTime.cs
- DataGridItem.cs
- CroppedBitmap.cs
- XPathScanner.cs
- CTreeGenerator.cs
- BinaryFormatter.cs
- BaseProcessor.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Emitter.cs
- ListMarkerSourceInfo.cs
- PropertyMapper.cs
- ThousandthOfEmRealPoints.cs
- FileNotFoundException.cs
- ReadOnlyDictionary.cs
- Internal.cs
- DataGrid.cs
- MediaElementAutomationPeer.cs
- StringWriter.cs
- HtmlContainerControl.cs