Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlLangPropertyAttribute.cs
- XmlSchema.cs
- IdentityReference.cs
- Array.cs
- CodeTryCatchFinallyStatement.cs
- ZipIORawDataFileBlock.cs
- BuilderPropertyEntry.cs
- ObjectKeyFrameCollection.cs
- StylusButton.cs
- InvalidFilterCriteriaException.cs
- CfgRule.cs
- CodeVariableReferenceExpression.cs
- TextViewDesigner.cs
- PolicyValidationException.cs
- ProcessModelSection.cs
- PerformanceCounterManager.cs
- PropertyDescriptorGridEntry.cs
- CapabilitiesPattern.cs
- BitConverter.cs
- WorkflowMessageEventHandler.cs
- xamlnodes.cs
- _LazyAsyncResult.cs
- XmlAttributes.cs
- RectangleF.cs
- BinaryObjectWriter.cs
- MaskedTextBox.cs
- WebPartAddingEventArgs.cs
- HttpModule.cs
- _PooledStream.cs
- ToggleButton.cs
- PrinterSettings.cs
- FixedPage.cs
- UIElement.cs
- PropertyPathWorker.cs
- XpsException.cs
- IDReferencePropertyAttribute.cs
- MultiView.cs
- ClientBuildManagerCallback.cs
- DbProviderConfigurationHandler.cs
- BaseValidator.cs
- RowSpanVector.cs
- BlurEffect.cs
- PointConverter.cs
- XmlDataDocument.cs
- GeneralTransform3DTo2D.cs
- LoginView.cs
- PhoneCall.cs
- FrugalList.cs
- Visual3D.cs
- XmlElementAttributes.cs
- SingleSelectRootGridEntry.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- PerfCounters.cs
- TimeSpanValidator.cs
- UpdateCompiler.cs
- Application.cs
- ValueConversionAttribute.cs
- TextServicesCompartmentEventSink.cs
- TypeGeneratedEventArgs.cs
- FontStretches.cs
- ToggleProviderWrapper.cs
- PointConverter.cs
- BmpBitmapDecoder.cs
- ImmComposition.cs
- IntSecurity.cs
- OrderedDictionary.cs
- MDIWindowDialog.cs
- TextTreeNode.cs
- ColumnMapVisitor.cs
- ApplicationCommands.cs
- EntitySqlQueryBuilder.cs
- CipherData.cs
- ContainsRowNumberChecker.cs
- ObjectQueryState.cs
- BinaryWriter.cs
- UpdatePanelTrigger.cs
- HttpRuntime.cs
- NetPeerTcpBindingCollectionElement.cs
- Menu.cs
- OleDbException.cs
- MultiSelectRootGridEntry.cs
- ColorMatrix.cs
- VisualStateManager.cs
- ConfigurationValue.cs
- MaskedTextBoxTextEditorDropDown.cs
- IfJoinedCondition.cs
- MetadataSource.cs
- CodeExpressionStatement.cs
- OleDbWrapper.cs
- SystemInfo.cs
- WindowsGraphics2.cs
- CollectionViewGroupInternal.cs
- DeclaredTypeValidatorAttribute.cs
- SpecularMaterial.cs
- ObjectIDGenerator.cs
- PerspectiveCamera.cs
- PageCatalogPart.cs
- PresentationAppDomainManager.cs
- QueryableFilterUserControl.cs
- XmlUTF8TextReader.cs