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
- HttpResponse.cs
- SequentialOutput.cs
- FileUpload.cs
- XmlSchemaRedefine.cs
- WebExceptionStatus.cs
- WebException.cs
- HandleRef.cs
- PointConverter.cs
- TypeSystem.cs
- BoolExpression.cs
- SessionStateUtil.cs
- AuthenticationException.cs
- CatchBlock.cs
- Rotation3D.cs
- DataPagerFieldCommandEventArgs.cs
- ConfigXmlComment.cs
- SqlParameterizer.cs
- FormatStringEditor.cs
- UnorderedHashRepartitionStream.cs
- HtmlControlAdapter.cs
- Operator.cs
- KnowledgeBase.cs
- Evidence.cs
- AlphaSortedEnumConverter.cs
- GroupByExpressionRewriter.cs
- DataGridViewRowPrePaintEventArgs.cs
- Span.cs
- CompositeScriptReference.cs
- CompareInfo.cs
- ProjectionQueryOptionExpression.cs
- AlternationConverter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SymbolDocumentGenerator.cs
- OverrideMode.cs
- Keyboard.cs
- Symbol.cs
- MouseEventArgs.cs
- XPathItem.cs
- TrackingCondition.cs
- SmiXetterAccessMap.cs
- ExtensionSimplifierMarkupObject.cs
- TimeSpan.cs
- MetadataLocation.cs
- NamespaceListProperty.cs
- Typeface.cs
- BinaryConverter.cs
- StackSpiller.Generated.cs
- X509Utils.cs
- TextServicesManager.cs
- DockAndAnchorLayout.cs
- GenericUriParser.cs
- RoleManagerSection.cs
- UserNameSecurityTokenAuthenticator.cs
- SQLDoubleStorage.cs
- WeakHashtable.cs
- DataBindingCollection.cs
- FileSystemWatcher.cs
- DesignerActionList.cs
- ObjectItemNoOpAssemblyLoader.cs
- XmlSchemaAny.cs
- XmlNodeComparer.cs
- MimeWriter.cs
- BitmapFrame.cs
- DragSelectionMessageFilter.cs
- XslAst.cs
- FolderLevelBuildProvider.cs
- MetadataUtil.cs
- CreateUserWizardStep.cs
- SessionStateItemCollection.cs
- InvocationExpression.cs
- AttachmentCollection.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- XsltLoader.cs
- OneOfElement.cs
- HostingPreferredMapPath.cs
- SQLDouble.cs
- EmptyEnumerator.cs
- InputLanguage.cs
- Assembly.cs
- ToolboxItemCollection.cs
- BindingCompleteEventArgs.cs
- TextDecorationUnitValidation.cs
- GridViewColumnHeaderAutomationPeer.cs
- EntityDataSourceChangingEventArgs.cs
- ContextConfiguration.cs
- ListItem.cs
- NumericExpr.cs
- PageMediaSize.cs
- ContentElementAutomationPeer.cs
- Camera.cs
- SQLBoolean.cs
- CatalogPartCollection.cs
- HandleExceptionArgs.cs
- HandlerFactoryWrapper.cs
- PresentationAppDomainManager.cs
- SessionEndingEventArgs.cs
- Converter.cs
- WindowsFont.cs
- GlyphInfoList.cs
- Operators.cs