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
- IndexedEnumerable.cs
- CharacterShapingProperties.cs
- RoutingChannelExtension.cs
- XmlSchemaSimpleTypeUnion.cs
- ProtectedConfigurationProviderCollection.cs
- Pair.cs
- ConfigurationSchemaErrors.cs
- MatrixStack.cs
- SequenceFullException.cs
- SoapEnumAttribute.cs
- DTCTransactionManager.cs
- CodeSnippetExpression.cs
- RegexParser.cs
- ServiceDebugElement.cs
- DSASignatureFormatter.cs
- ListenerElementsCollection.cs
- PackageDigitalSignature.cs
- OleDbConnectionFactory.cs
- CacheEntry.cs
- Ops.cs
- NotificationContext.cs
- BaseTreeIterator.cs
- TextRenderer.cs
- NativeMethods.cs
- FileRegion.cs
- UnwrappedTypesXmlSerializerManager.cs
- XhtmlBasicLiteralTextAdapter.cs
- ThreadAbortException.cs
- DynamicMethod.cs
- X509Certificate2Collection.cs
- ProgressBarBrushConverter.cs
- ListViewTableCell.cs
- EditorZone.cs
- SQLConvert.cs
- HandlerBase.cs
- Stacktrace.cs
- EnumerableWrapperWeakToStrong.cs
- LoadWorkflowByKeyAsyncResult.cs
- FontStretchConverter.cs
- ClrPerspective.cs
- DoubleAnimationUsingKeyFrames.cs
- RegexWriter.cs
- LineMetrics.cs
- StoreAnnotationsMap.cs
- XmlIlTypeHelper.cs
- PageRequestManager.cs
- ConnectionStringSettings.cs
- RuntimeHelpers.cs
- ObjectListField.cs
- MimeParameter.cs
- StylusPlugInCollection.cs
- Table.cs
- GlyphingCache.cs
- InputDevice.cs
- Baml2006KnownTypes.cs
- PKCS1MaskGenerationMethod.cs
- GridViewSelectEventArgs.cs
- EngineSite.cs
- EntityContainerEntitySetDefiningQuery.cs
- ConfigurationSectionGroupCollection.cs
- RegularExpressionValidator.cs
- BamlWriter.cs
- FirstMatchCodeGroup.cs
- DiscoveryMessageSequence11.cs
- DashStyle.cs
- Expressions.cs
- IdentitySection.cs
- UserPrincipalNameElement.cs
- TransactionManager.cs
- ConfigurationLocation.cs
- FontNamesConverter.cs
- Method.cs
- DirectoryObjectSecurity.cs
- AutoGeneratedFieldProperties.cs
- XPathNavigatorKeyComparer.cs
- HostingPreferredMapPath.cs
- ApplicationId.cs
- EntryWrittenEventArgs.cs
- XmlDownloadManager.cs
- UIElement.cs
- FtpRequestCacheValidator.cs
- PageParser.cs
- XhtmlBasicLabelAdapter.cs
- TextUtf8RawTextWriter.cs
- WebPartHeaderCloseVerb.cs
- Boolean.cs
- X509CertificateCollection.cs
- DataSpaceManager.cs
- SynchronizedPool.cs
- ConfigurationStrings.cs
- HtmlEmptyTagControlBuilder.cs
- ImageButton.cs
- CriticalHandle.cs
- InternalReceiveMessage.cs
- ConfigXmlSignificantWhitespace.cs
- SurrogateDataContract.cs
- StylusDownEventArgs.cs
- AppDomainResourcePerfCounters.cs
- GroupBoxRenderer.cs
- TagElement.cs