Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ImageMapEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- FontCacheUtil.cs
- TransactionBridge.cs
- ObjectSecurity.cs
- HttpAsyncResult.cs
- PermissionRequestEvidence.cs
- PeerApplicationLaunchInfo.cs
- DynamicRendererThreadManager.cs
- XPathParser.cs
- TypeToStringValueConverter.cs
- RouteItem.cs
- SourceElementsCollection.cs
- RequestCachingSection.cs
- basecomparevalidator.cs
- XmlFormatExtensionPointAttribute.cs
- ChtmlCommandAdapter.cs
- WebPart.cs
- RequestCachePolicyConverter.cs
- SiteMapPath.cs
- Clipboard.cs
- CqlIdentifiers.cs
- RedistVersionInfo.cs
- GridViewHeaderRowPresenter.cs
- CodeTypeParameterCollection.cs
- SQLResource.cs
- AssemblyBuilder.cs
- DrawingAttributes.cs
- LinkUtilities.cs
- UserControl.cs
- DesignerWidgets.cs
- InitializingNewItemEventArgs.cs
- ZoneMembershipCondition.cs
- ClientSettingsStore.cs
- ReferencedAssembly.cs
- EntityViewContainer.cs
- CompModSwitches.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Profiler.cs
- IListConverters.cs
- Menu.cs
- TerminatorSinks.cs
- SharedPersonalizationStateInfo.cs
- OletxResourceManager.cs
- IListConverters.cs
- WebHttpBehavior.cs
- DebugHandleTracker.cs
- ResourceDescriptionAttribute.cs
- ColorBlend.cs
- StylusShape.cs
- _UriTypeConverter.cs
- CodeTryCatchFinallyStatement.cs
- ConnectionInterfaceCollection.cs
- BindingBase.cs
- DodSequenceMerge.cs
- ConnectionStringSettingsCollection.cs
- KeySpline.cs
- SchemaImporter.cs
- DataViewSettingCollection.cs
- NonPrimarySelectionGlyph.cs
- CqlErrorHelper.cs
- CryptoHandle.cs
- CheckBoxAutomationPeer.cs
- PersistenceException.cs
- _ConnectionGroup.cs
- Context.cs
- Model3DGroup.cs
- SessionIDManager.cs
- JsonWriter.cs
- DiffuseMaterial.cs
- TraceXPathNavigator.cs
- SimpleWebHandlerParser.cs
- InstanceDataCollectionCollection.cs
- PageCodeDomTreeGenerator.cs
- ListenUriMode.cs
- Transform.cs
- Missing.cs
- TypeGeneratedEventArgs.cs
- SessionStateSection.cs
- CodeCompileUnit.cs
- ValueQuery.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- InheritanceRules.cs
- ProxyFragment.cs
- AppSettingsExpressionBuilder.cs
- FileEnumerator.cs
- XmlSchemaParticle.cs
- LinearKeyFrames.cs
- GenerateScriptTypeAttribute.cs
- ConstructorNeedsTagAttribute.cs
- TreeViewImageIndexConverter.cs
- NameSpaceExtractor.cs
- DefaultValueAttribute.cs
- ProviderConnectionPointCollection.cs
- SessionStateSection.cs
- VariantWrapper.cs
- TransformConverter.cs
- EditingCoordinator.cs
- EdmValidator.cs
- TextTreeInsertElementUndoUnit.cs