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
- XamlGridLengthSerializer.cs
- MetaForeignKeyColumn.cs
- Permission.cs
- ApplicationSecurityManager.cs
- BrowsableAttribute.cs
- DynamicRouteExpression.cs
- AppDomainAttributes.cs
- CommentEmitter.cs
- CellTreeNode.cs
- TraceContextRecord.cs
- RequiredFieldValidator.cs
- XmlQualifiedNameTest.cs
- WebPartsSection.cs
- TextBox.cs
- Oid.cs
- IriParsingElement.cs
- errorpatternmatcher.cs
- InitializerFacet.cs
- ReadOnlyDictionary.cs
- BridgeDataReader.cs
- WindowsFont.cs
- FileFormatException.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- RemoteAsymmetricSignatureFormatter.cs
- Number.cs
- StatusCommandUI.cs
- Renderer.cs
- CalendarDay.cs
- PathGeometry.cs
- SafeRegistryKey.cs
- BufferedOutputStream.cs
- StateFinalizationActivity.cs
- AuthorizationRuleCollection.cs
- DataGridViewCell.cs
- RTLAwareMessageBox.cs
- TemplatedWizardStep.cs
- QilStrConcat.cs
- AnimatedTypeHelpers.cs
- DesignerActionUIStateChangeEventArgs.cs
- PropertyItemInternal.cs
- ListBox.cs
- SqlDataReaderSmi.cs
- PingReply.cs
- Column.cs
- AddInStore.cs
- LazyTextWriterCreator.cs
- ListViewGroup.cs
- Win32.cs
- AppDomainInfo.cs
- GridViewPageEventArgs.cs
- NavigationProgressEventArgs.cs
- MemberDescriptor.cs
- WebResponse.cs
- CompiledELinqQueryState.cs
- CommunicationObjectManager.cs
- Opcode.cs
- ButtonChrome.cs
- TraceContextEventArgs.cs
- ComponentEditorPage.cs
- ProjectedWrapper.cs
- TransformerInfoCollection.cs
- TransformCryptoHandle.cs
- FixedFlowMap.cs
- BasicBrowserDialog.designer.cs
- XPathAxisIterator.cs
- ProcessModuleCollection.cs
- XmlHierarchyData.cs
- XPathScanner.cs
- LogPolicy.cs
- MsdtcClusterUtils.cs
- DescendantOverDescendantQuery.cs
- HtmlInputButton.cs
- XPathSelectionIterator.cs
- EventMappingSettingsCollection.cs
- _ProxyChain.cs
- DeferredReference.cs
- TypeConverters.cs
- TableCell.cs
- ObjectIDGenerator.cs
- RequestCachingSection.cs
- Encoder.cs
- odbcmetadatacollectionnames.cs
- WhitespaceRuleLookup.cs
- SqlResolver.cs
- EmbeddedObject.cs
- Attributes.cs
- TreeViewCancelEvent.cs
- InputScopeConverter.cs
- OleDbMetaDataFactory.cs
- TryCatch.cs
- ControlParameter.cs
- ServiceNameElementCollection.cs
- StreamReader.cs
- Flattener.cs
- OdbcConnectionOpen.cs
- __Filters.cs
- ImageCodecInfoPrivate.cs
- ComplexTypeEmitter.cs
- MessageEventSubscriptionService.cs
- FontFamily.cs