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
- Comparer.cs
- GridViewEditEventArgs.cs
- PropertyEntry.cs
- RowsCopiedEventArgs.cs
- MemberInfoSerializationHolder.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BadImageFormatException.cs
- ImageListUtils.cs
- SQLSingleStorage.cs
- RandomNumberGenerator.cs
- BuildResult.cs
- MouseGestureValueSerializer.cs
- TextEditorCharacters.cs
- InputScopeAttribute.cs
- MsmqTransportElement.cs
- ContextProperty.cs
- WebReferencesBuildProvider.cs
- SafeCoTaskMem.cs
- WindowsPrincipal.cs
- WebSysDescriptionAttribute.cs
- ResourcePermissionBase.cs
- StrokeCollectionConverter.cs
- DataTableMapping.cs
- Stroke2.cs
- ConstraintStruct.cs
- ColorMap.cs
- CacheDependency.cs
- FilePrompt.cs
- securitycriticaldata.cs
- BinaryObjectReader.cs
- DbProviderFactoriesConfigurationHandler.cs
- ResourceDescriptionAttribute.cs
- ResetableIterator.cs
- ProvidePropertyAttribute.cs
- SqlDataSourceView.cs
- SystemBrushes.cs
- DbParameterHelper.cs
- ToolStripSettings.cs
- VirtualizingStackPanel.cs
- BitmapEffect.cs
- RsaSecurityKey.cs
- EditingScope.cs
- URIFormatException.cs
- EventMappingSettings.cs
- Stack.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ClientUIRequest.cs
- FormsAuthenticationCredentials.cs
- ApplicationInfo.cs
- ScrollViewerAutomationPeer.cs
- SizeChangedInfo.cs
- Missing.cs
- SystemFonts.cs
- VirtualPathProvider.cs
- InternalConfigHost.cs
- XPathNavigatorReader.cs
- XhtmlBasicPanelAdapter.cs
- MetadataFile.cs
- SQLDateTimeStorage.cs
- RoleManagerEventArgs.cs
- UnaryNode.cs
- UnionExpr.cs
- SR.Designer.cs
- Converter.cs
- HttpModuleAction.cs
- CommonObjectSecurity.cs
- Monitor.cs
- OrderedDictionary.cs
- ErrorView.xaml.cs
- PrintEvent.cs
- XmlWrappingReader.cs
- PasswordDeriveBytes.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CanExpandCollapseAllConverter.cs
- TableItemStyle.cs
- Privilege.cs
- rsa.cs
- ToolStripDropDownClosingEventArgs.cs
- StringArrayEditor.cs
- UpdateTracker.cs
- EvidenceTypeDescriptor.cs
- Binding.cs
- Matrix3DStack.cs
- CharEntityEncoderFallback.cs
- TypedTableBase.cs
- Certificate.cs
- DecimalConstantAttribute.cs
- DLinqColumnProvider.cs
- HandlerFactoryCache.cs
- ButtonFlatAdapter.cs
- Vector3DCollectionConverter.cs
- XmlSchemaProviderAttribute.cs
- TextMessageEncodingElement.cs
- TableItemPatternIdentifiers.cs
- ContextStack.cs
- SystemException.cs
- FilteredDataSetHelper.cs
- SqlConnectionFactory.cs
- HtmlInputFile.cs
- HorizontalAlignConverter.cs