Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UrlPath.cs
- TrustLevelCollection.cs
- MailWebEventProvider.cs
- ButtonField.cs
- SettingsBindableAttribute.cs
- SplitterPanel.cs
- BrushValueSerializer.cs
- LoginCancelEventArgs.cs
- SafeEventLogWriteHandle.cs
- MaterialGroup.cs
- RegexCompiler.cs
- SchemaTypeEmitter.cs
- SiteMapPathDesigner.cs
- NavigatorOutput.cs
- ForceCopyBuildProvider.cs
- ListBoxItemWrapperAutomationPeer.cs
- SafeNativeMethods.cs
- WebControlAdapter.cs
- CodeIterationStatement.cs
- TransformProviderWrapper.cs
- FontCollection.cs
- RijndaelManaged.cs
- NotFiniteNumberException.cs
- LookupTables.cs
- ToolBarPanel.cs
- CodeIterationStatement.cs
- ArrayWithOffset.cs
- FileLoadException.cs
- MachineKeyConverter.cs
- AsyncCompletedEventArgs.cs
- RefreshEventArgs.cs
- webbrowsersite.cs
- UrlMappingsModule.cs
- ChangePassword.cs
- TimeSpanConverter.cs
- ObjectSecurity.cs
- ParameterToken.cs
- FixedDocumentSequencePaginator.cs
- __Error.cs
- ProfileInfo.cs
- Funcletizer.cs
- MediaContext.cs
- DiscoveryClientElement.cs
- IPAddressCollection.cs
- EditorPartCollection.cs
- DataTableReader.cs
- SecurityException.cs
- SupportsEventValidationAttribute.cs
- PropertyManager.cs
- EventLogInternal.cs
- InputScope.cs
- rsa.cs
- WorkflowDispatchContext.cs
- DtrList.cs
- DataObject.cs
- Sql8ExpressionRewriter.cs
- AddressUtility.cs
- Int64Storage.cs
- ObservableCollectionDefaultValueFactory.cs
- QualifiedCellIdBoolean.cs
- HttpProcessUtility.cs
- ObjectNotFoundException.cs
- Rethrow.cs
- ImageSourceValueSerializer.cs
- ByteAnimationBase.cs
- NativeMethods.cs
- LinearKeyFrames.cs
- ExceptionAggregator.cs
- SubstitutionDesigner.cs
- PropertyCollection.cs
- NameObjectCollectionBase.cs
- CorePropertiesFilter.cs
- SectionRecord.cs
- UICuesEvent.cs
- SystemTcpStatistics.cs
- DiscoveryEndpointValidator.cs
- CodeAccessPermission.cs
- ComponentDispatcherThread.cs
- SQLInt16.cs
- DataViewSettingCollection.cs
- FormCollection.cs
- Pens.cs
- TextBoxAutoCompleteSourceConverter.cs
- XmlElementAttributes.cs
- DispatchChannelSink.cs
- IntPtr.cs
- XmlSchemaNotation.cs
- base64Transforms.cs
- DataGridViewColumnStateChangedEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- IPipelineRuntime.cs
- NavigatorOutput.cs
- WebEncodingValidatorAttribute.cs
- SystemBrushes.cs
- DispatcherHooks.cs
- ReservationNotFoundException.cs
- ParameterSubsegment.cs
- AssemblyContextControlItem.cs
- Console.cs
- AsyncResult.cs