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
- TextEditor.cs
- VideoDrawing.cs
- ResolveNameEventArgs.cs
- TableColumn.cs
- MachineSettingsSection.cs
- MetadataCache.cs
- SubMenuStyleCollection.cs
- IncrementalReadDecoders.cs
- _Semaphore.cs
- Camera.cs
- CollectionCodeDomSerializer.cs
- TableItemStyle.cs
- FrugalList.cs
- ToolTip.cs
- DoubleAnimationUsingPath.cs
- InputMethodStateChangeEventArgs.cs
- WebPartEditVerb.cs
- BStrWrapper.cs
- AppDomainGrammarProxy.cs
- WindowsRichEditRange.cs
- AnnotationResource.cs
- OutputChannelBinder.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DummyDataSource.cs
- TemplateComponentConnector.cs
- VBCodeProvider.cs
- TextLineBreak.cs
- PageCatalogPart.cs
- CriticalFinalizerObject.cs
- RIPEMD160Managed.cs
- RNGCryptoServiceProvider.cs
- SynchronizationHandlesCodeDomSerializer.cs
- StrongNameKeyPair.cs
- TextRangeBase.cs
- ExpressionParser.cs
- RawAppCommandInputReport.cs
- InnerItemCollectionView.cs
- QuaternionRotation3D.cs
- BufferedOutputStream.cs
- XsdDataContractExporter.cs
- PackageDigitalSignatureManager.cs
- ParagraphVisual.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- MtomMessageEncoder.cs
- RotateTransform3D.cs
- Sql8ExpressionRewriter.cs
- TypeSystem.cs
- InArgumentConverter.cs
- cookieexception.cs
- TypeConverterAttribute.cs
- IdnElement.cs
- TaiwanCalendar.cs
- HttpContext.cs
- Exceptions.cs
- ReversePositionQuery.cs
- DragEventArgs.cs
- RelationshipConverter.cs
- DnsEndpointIdentity.cs
- MetadataCache.cs
- LinqDataSourceContextEventArgs.cs
- ShaperBuffers.cs
- Renderer.cs
- BackgroundFormatInfo.cs
- DoubleAnimationUsingPath.cs
- ZipIOExtraField.cs
- Point3DCollectionValueSerializer.cs
- OdbcStatementHandle.cs
- WebPartRestoreVerb.cs
- ConfigurationValidatorAttribute.cs
- CategoriesDocumentFormatter.cs
- InternalPermissions.cs
- FileUpload.cs
- DesignerHelpers.cs
- DrawingAttributes.cs
- ConfigurationStrings.cs
- CookielessHelper.cs
- GridViewRowPresenterBase.cs
- XPathDocumentBuilder.cs
- NameNode.cs
- IBuiltInEvidence.cs
- SerializationInfoEnumerator.cs
- FolderLevelBuildProviderCollection.cs
- PrintingPermissionAttribute.cs
- HtmlImageAdapter.cs
- PartialArray.cs
- TextTrailingCharacterEllipsis.cs
- DoubleStorage.cs
- SiteMapSection.cs
- XsltException.cs
- ListManagerBindingsCollection.cs
- XPathAncestorQuery.cs
- ContractMapping.cs
- WeakRefEnumerator.cs
- AnnotationComponentChooser.cs
- StructuredType.cs
- CompilationLock.cs
- WebBodyFormatMessageProperty.cs
- InvokePattern.cs
- HyperlinkAutomationPeer.cs
- SoundPlayer.cs