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
- CharacterMetricsDictionary.cs
- Inline.cs
- CompositeFontParser.cs
- OleDbTransaction.cs
- DrawingAttributeSerializer.cs
- ProxySimple.cs
- IntSecurity.cs
- GenericTypeParameterConverter.cs
- AsyncOperation.cs
- CallbackValidatorAttribute.cs
- AnyAllSearchOperator.cs
- ConfigurationLockCollection.cs
- GeneralTransform3DTo2D.cs
- PointAnimation.cs
- AtomServiceDocumentSerializer.cs
- OrderedDictionary.cs
- BlurEffect.cs
- ConnectivityStatus.cs
- DataGridCommandEventArgs.cs
- CLRBindingWorker.cs
- TransformerInfoCollection.cs
- ResourceManagerWrapper.cs
- WebServiceData.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Adorner.cs
- TableDetailsRow.cs
- SqlConnectionHelper.cs
- CodeIterationStatement.cs
- KnownColorTable.cs
- MatrixAnimationUsingKeyFrames.cs
- DataGridViewRowCollection.cs
- FixedSOMLineRanges.cs
- HMACSHA1.cs
- MD5.cs
- File.cs
- SelectionRangeConverter.cs
- DataRowCollection.cs
- CompilerGlobalScopeAttribute.cs
- UITypeEditor.cs
- NativeObjectSecurity.cs
- Visual3D.cs
- ItemDragEvent.cs
- XmlSchemaObjectCollection.cs
- Helpers.cs
- StringAnimationUsingKeyFrames.cs
- OptimalTextSource.cs
- DesignerDataParameter.cs
- SqlPersonalizationProvider.cs
- RefType.cs
- Configuration.cs
- _CommandStream.cs
- DataPagerFieldCommandEventArgs.cs
- ToolStripManager.cs
- Span.cs
- EdgeModeValidation.cs
- loginstatus.cs
- SR.cs
- DateTime.cs
- IdentityHolder.cs
- SqlRemoveConstantOrderBy.cs
- ListBase.cs
- ConfigurationElementCollection.cs
- PackagePart.cs
- ConvertEvent.cs
- TableRow.cs
- ValidatingPropertiesEventArgs.cs
- WebServiceMethodData.cs
- CacheManager.cs
- DataGridAutoFormat.cs
- BamlResourceDeserializer.cs
- FixedTextPointer.cs
- GeneralTransform.cs
- RIPEMD160Managed.cs
- StrongNameMembershipCondition.cs
- ElementsClipboardData.cs
- FamilyCollection.cs
- DirectoryGroupQuery.cs
- MappedMetaModel.cs
- VirtualPathUtility.cs
- ObjectAssociationEndMapping.cs
- LogicalExpr.cs
- SqlWebEventProvider.cs
- Timer.cs
- MDIWindowDialog.cs
- ArgumentException.cs
- QilDataSource.cs
- XmlDigitalSignatureProcessor.cs
- WorkflowServiceNamespace.cs
- WorkflowInstance.cs
- ApplicationId.cs
- WindowsStatusBar.cs
- TransformerInfo.cs
- SubtreeProcessor.cs
- WindowsFormsHelpers.cs
- InternalConfigHost.cs
- SpellerStatusTable.cs
- SubMenuStyleCollection.cs
- DateTimeOffsetAdapter.cs
- DoubleAnimation.cs
- SessionSwitchEventArgs.cs