Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ToolStripItem.cs
- Object.cs
- SqlParameter.cs
- BaseParagraph.cs
- WindowPatternIdentifiers.cs
- XmlChoiceIdentifierAttribute.cs
- PrimitiveSchema.cs
- ChtmlMobileTextWriter.cs
- path.cs
- TextElementEnumerator.cs
- HtmlProps.cs
- XmlCharCheckingReader.cs
- MediaElement.cs
- Image.cs
- SynchronizationContext.cs
- SafeMILHandleMemoryPressure.cs
- NamespaceQuery.cs
- CssTextWriter.cs
- ResourceCategoryAttribute.cs
- SerializationEventsCache.cs
- OrderedDictionaryStateHelper.cs
- Keywords.cs
- LinkedResource.cs
- PropertyValueChangedEvent.cs
- AuthenticationModuleElementCollection.cs
- RestHandler.cs
- SiteMapProvider.cs
- ModelPropertyImpl.cs
- PrefixHandle.cs
- ForwardPositionQuery.cs
- RequestContext.cs
- UnmanagedMemoryStream.cs
- BufferedWebEventProvider.cs
- XPathArrayIterator.cs
- AutoSizeComboBox.cs
- EncryptedType.cs
- WsdlParser.cs
- AssertSection.cs
- HttpCachePolicyWrapper.cs
- EnumerationRangeValidationUtil.cs
- DeflateEmulationStream.cs
- ClickablePoint.cs
- CompilerErrorCollection.cs
- localization.cs
- InputDevice.cs
- SettingsPropertyCollection.cs
- SafeEventLogWriteHandle.cs
- WebPartPersonalization.cs
- CompositeScriptReference.cs
- PersonalizationProviderCollection.cs
- InvalidOperationException.cs
- MachineKey.cs
- DataBoundLiteralControl.cs
- AdapterDictionary.cs
- WebPartZoneCollection.cs
- CodePrimitiveExpression.cs
- ButtonField.cs
- EdmSchemaAttribute.cs
- TypeDescriptionProviderAttribute.cs
- SwitchAttribute.cs
- Attribute.cs
- InputEventArgs.cs
- Rijndael.cs
- GridViewCellAutomationPeer.cs
- DesignerHelpers.cs
- DateTimeParse.cs
- ControlAdapter.cs
- IsolatedStorageFile.cs
- ConnectionPoint.cs
- OletxVolatileEnlistment.cs
- LinkedResource.cs
- xmlfixedPageInfo.cs
- Stack.cs
- ListParaClient.cs
- SubqueryRules.cs
- ProviderUtil.cs
- AxisAngleRotation3D.cs
- CachingHintValidation.cs
- TypeCodeDomSerializer.cs
- ListViewUpdatedEventArgs.cs
- CodeIdentifiers.cs
- XmlILConstructAnalyzer.cs
- ScriptingWebServicesSectionGroup.cs
- ObjectContextServiceProvider.cs
- DurableOperationContext.cs
- AssemblyAssociatedContentFileAttribute.cs
- AutoGeneratedField.cs
- TextCollapsingProperties.cs
- QilTypeChecker.cs
- WebPartDescriptionCollection.cs
- AvtEvent.cs
- DataGridViewUtilities.cs
- EntityContainerAssociationSet.cs
- PropertyItem.cs
- BitmapEffectInput.cs
- ListSourceHelper.cs
- HandlerElementCollection.cs
- SqlNotificationEventArgs.cs
- StrongNamePublicKeyBlob.cs
- EllipticalNodeOperations.cs