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
- SqlDelegatedTransaction.cs
- ToggleButton.cs
- Geometry.cs
- QueryCorrelationInitializer.cs
- ThreadAttributes.cs
- TrustSection.cs
- PropertyValidationContext.cs
- ObservableDictionary.cs
- ListBox.cs
- DbFunctionCommandTree.cs
- FontResourceCache.cs
- ImpersonationContext.cs
- RewritingPass.cs
- TabPageDesigner.cs
- TemplateDefinition.cs
- OrderedDictionaryStateHelper.cs
- MetadataException.cs
- RectangleGeometry.cs
- NullableLongMinMaxAggregationOperator.cs
- HttpListenerContext.cs
- LineProperties.cs
- ConvertersCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- httpstaticobjectscollection.cs
- Shared.cs
- LayoutManager.cs
- ProcessManager.cs
- TextRangeAdaptor.cs
- SHA512Cng.cs
- RelativeSource.cs
- SqlBulkCopyColumnMappingCollection.cs
- ZoneButton.cs
- PageCanvasSize.cs
- ContractDescription.cs
- TextTreeRootTextBlock.cs
- InstanceData.cs
- ValuePattern.cs
- AQNBuilder.cs
- xml.cs
- EntityConnectionStringBuilderItem.cs
- VectorValueSerializer.cs
- SystemColors.cs
- GregorianCalendar.cs
- WrappedIUnknown.cs
- BaseTreeIterator.cs
- EntityContainerRelationshipSet.cs
- HttpCacheVaryByContentEncodings.cs
- OleDbWrapper.cs
- Rules.cs
- ContextMenu.cs
- SizeAnimationBase.cs
- ChtmlPageAdapter.cs
- ShaperBuffers.cs
- DataGridItem.cs
- MostlySingletonList.cs
- WaitHandleCannotBeOpenedException.cs
- DataGridViewRowEventArgs.cs
- DllNotFoundException.cs
- RedistVersionInfo.cs
- NetworkInformationException.cs
- TypeDelegator.cs
- X509CertificateValidator.cs
- Matrix.cs
- hresults.cs
- Workspace.cs
- XmlAttributeOverrides.cs
- StrongNameMembershipCondition.cs
- StringDictionaryWithComparer.cs
- WasAdminWrapper.cs
- BulletedListEventArgs.cs
- TypeSystem.cs
- DashStyle.cs
- StylusPointDescription.cs
- SchemaElementDecl.cs
- SignedPkcs7.cs
- BaseWebProxyFinder.cs
- DBConcurrencyException.cs
- InternalsVisibleToAttribute.cs
- DayRenderEvent.cs
- DefaultObjectMappingItemCollection.cs
- UserPreferenceChangingEventArgs.cs
- SafeNativeMethods.cs
- SimpleRecyclingCache.cs
- DbConnectionPool.cs
- NotImplementedException.cs
- FileDialogCustomPlacesCollection.cs
- LiteralLink.cs
- TextEditorMouse.cs
- OptimizerPatterns.cs
- Processor.cs
- DefaultValueAttribute.cs
- LZCodec.cs
- WebEventCodes.cs
- NullRuntimeConfig.cs
- CheckBoxStandardAdapter.cs
- QueryReaderSettings.cs
- BaseProcessor.cs
- BrowserTree.cs
- ExpressionNode.cs
- ValidatorCompatibilityHelper.cs