Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / 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 : BrendanM 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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Exception indicating that a clickable point could not be found // // History: // 10/23/2003 : BrendanM 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
- BitConverter.cs
- XmlQueryType.cs
- Vector3D.cs
- StrongNameIdentityPermission.cs
- DataSetUtil.cs
- BounceEase.cs
- ResourcePermissionBaseEntry.cs
- CompensateDesigner.cs
- TypeHelpers.cs
- XmlQueryOutput.cs
- HttpInputStream.cs
- InheritanceContextChangedEventManager.cs
- CollectionConverter.cs
- ClientUriBehavior.cs
- MemberPath.cs
- ExpressionUtilities.cs
- WebServiceClientProxyGenerator.cs
- COM2ExtendedTypeConverter.cs
- ChtmlTextWriter.cs
- XMLUtil.cs
- XmlSchemaAll.cs
- AppDomainFactory.cs
- BindingValueChangedEventArgs.cs
- Pair.cs
- XmlNodeList.cs
- ConstraintCollection.cs
- MouseWheelEventArgs.cs
- CommandLineParser.cs
- BindingSource.cs
- OdbcStatementHandle.cs
- TextEditorCharacters.cs
- ShutDownListener.cs
- RoutedEventValueSerializer.cs
- XmlSchemaSequence.cs
- CharConverter.cs
- SiteMembershipCondition.cs
- Trace.cs
- MsmqHostedTransportConfiguration.cs
- SimpleBitVector32.cs
- TimeoutConverter.cs
- XPathNode.cs
- AutomationProperty.cs
- UInt64.cs
- MetadataPropertyCollection.cs
- TrackBarRenderer.cs
- SelectionProviderWrapper.cs
- Sequence.cs
- PackageProperties.cs
- DataGridViewTopLeftHeaderCell.cs
- SQLConvert.cs
- WorkItem.cs
- RecordsAffectedEventArgs.cs
- DESCryptoServiceProvider.cs
- UtilityExtension.cs
- InvalidFilterCriteriaException.cs
- XmlCDATASection.cs
- ColorPalette.cs
- EncryptedPackage.cs
- _BufferOffsetSize.cs
- CalloutQueueItem.cs
- FrameDimension.cs
- EventlogProvider.cs
- SelectionListComponentEditor.cs
- XmlDataProvider.cs
- SqlUnionizer.cs
- UnsafeNativeMethods.cs
- InternalResources.cs
- ModifierKeysConverter.cs
- ChooseAction.cs
- LongValidator.cs
- UInt64Converter.cs
- Material.cs
- SequenceRange.cs
- TemplateManager.cs
- LeafCellTreeNode.cs
- Ref.cs
- HostedBindingBehavior.cs
- PointF.cs
- UserPersonalizationStateInfo.cs
- DelayedRegex.cs
- InputReport.cs
- TextPointer.cs
- TableLayoutSettings.cs
- LineUtil.cs
- LiteralControl.cs
- OLEDB_Enum.cs
- ColumnTypeConverter.cs
- RadialGradientBrush.cs
- TextContainerChangedEventArgs.cs
- RuntimeEnvironment.cs
- SpeechSeg.cs
- ContextMenu.cs
- EntityReference.cs
- QueryUtil.cs
- PopupEventArgs.cs
- FileDetails.cs
- ManipulationStartedEventArgs.cs
- WebSysDisplayNameAttribute.cs
- listitem.cs
- CfgArc.cs