Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationTypes / System / Windows / Automation / ElementNotAvailableException.cs / 1 / ElementNotAvailableException.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Exception indicating that a clickable point could not be found // // History: // 10/23/2003 : [....] Ported to WCP // //--------------------------------------------------------------------------- using System.Windows.Automation; using System; using System.Runtime.Serialization; using System.Security.Permissions; using MS.Internal.Automation; namespace System.Windows.Automation { ////// The exception that is thrown when accesses a AutomationElement or a /// RawElement that corresponds to UI that is no longer available. This can /// happen if the UI was in a dialog that was closed, or an application that /// was closed or terminated. /// [Serializable] #if (INTERNAL_COMPILE) internal class ElementNotAvailableException : SystemException #else public class ElementNotAvailableException : SystemException #endif { ////// Initializes a new instance of the ElementNotAvailableException class. /// public ElementNotAvailableException() : base(SR.Get(SRID.ElementNotAvailable)) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTAVAILABLE; } ////// Initializes an instance of the ElementNotAvailableException class with a specified error message. /// /// The message that describes the error. public ElementNotAvailableException(String message) : base(message) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTAVAILABLE; } ////// Initializes a new instance of the ElementNotAvailableException class with a specified error message and a reference to the inner exception that is the cause of this exception. /// /// The message that describes the error. /// The exception that is the cause of the current exception. public ElementNotAvailableException(string message, Exception innerException) : base(message, innerException) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTAVAILABLE; } ////// Initializes a new instance of the ElementNotAvailableException class with a reference to the inner exception that is the cause of this exception. /// /// The exception that is the cause of the current exception. public ElementNotAvailableException(Exception innerException) : base(SR.Get(SRID.ElementNotAvailable), innerException) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTAVAILABLE; } ////// Initializes a new instance of the ElementNotAvailableException class with serialized data. /// //CASRemoval:[SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)] protected ElementNotAvailableException(SerializationInfo info, StreamingContext context) : base(info, context) { HResult = UiaCoreTypesApi.UIA_E_ELEMENTNOTAVAILABLE; } ////// 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
- VerificationException.cs
- ToolStripDropDownClosedEventArgs.cs
- XmlAtomErrorReader.cs
- SerializationHelper.cs
- GenerateHelper.cs
- KeyValuePair.cs
- SafeFileMapViewHandle.cs
- EncodingDataItem.cs
- HtmlInputRadioButton.cs
- FieldNameLookup.cs
- SweepDirectionValidation.cs
- PersianCalendar.cs
- CommonDialog.cs
- DataBindingExpressionBuilder.cs
- Internal.cs
- Wrapper.cs
- DesignerAutoFormat.cs
- ComMethodElement.cs
- DaylightTime.cs
- ExpressionPrefixAttribute.cs
- CryptoKeySecurity.cs
- AnimatedTypeHelpers.cs
- Activator.cs
- ResourceSetExpression.cs
- XmlSchemaAnnotated.cs
- PlanCompilerUtil.cs
- RenderingBiasValidation.cs
- Type.cs
- TextUtf8RawTextWriter.cs
- SqlSelectStatement.cs
- CachedPathData.cs
- CollectionView.cs
- UserControlCodeDomTreeGenerator.cs
- AdCreatedEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- SourceInterpreter.cs
- StorageMappingItemCollection.cs
- CodeConditionStatement.cs
- ArgIterator.cs
- SrgsSubset.cs
- ProfileSection.cs
- SafeFreeMibTable.cs
- DataMisalignedException.cs
- ColorKeyFrameCollection.cs
- AmbientProperties.cs
- XmlRawWriter.cs
- SingleBodyParameterMessageFormatter.cs
- PropertyGridView.cs
- HTMLTagNameToTypeMapper.cs
- MouseActionConverter.cs
- DynamicPropertyReader.cs
- Floater.cs
- InternalControlCollection.cs
- IIS7UserPrincipal.cs
- SoapDocumentMethodAttribute.cs
- ListView.cs
- TextParagraphView.cs
- JsonQueryStringConverter.cs
- XmlDataProvider.cs
- IdentifierCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartConnectionsCloseVerb.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- AsyncResult.cs
- StylusEditingBehavior.cs
- PenLineCapValidation.cs
- ProxyWebPartConnectionCollection.cs
- HttpValueCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NativeMethods.cs
- WebControlsSection.cs
- CompensableActivity.cs
- ScalarType.cs
- ReflectPropertyDescriptor.cs
- DataGridViewSelectedRowCollection.cs
- LocalizationParserHooks.cs
- FloatMinMaxAggregationOperator.cs
- PositiveTimeSpanValidatorAttribute.cs
- FactoryGenerator.cs
- CqlQuery.cs
- FieldDescriptor.cs
- PropertyNames.cs
- RequestCacheManager.cs
- CategoryAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- StatusBarPanel.cs
- EntityCodeGenerator.cs
- RoutedPropertyChangedEventArgs.cs
- ImageMetadata.cs
- SourceFileInfo.cs
- SslStream.cs
- ConstantProjectedSlot.cs
- ThousandthOfEmRealPoints.cs
- EntitySetDataBindingList.cs
- ValidationErrorEventArgs.cs
- MaskedTextBoxDesignerActionList.cs
- SkewTransform.cs
- HtmlInputControl.cs
- XmlValidatingReaderImpl.cs
- EventlogProvider.cs