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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ManagementOptions.cs
- ProcessHostFactoryHelper.cs
- CompoundFileStreamReference.cs
- ExpressionVisitor.cs
- HttpHeaderCollection.cs
- KerberosSecurityTokenAuthenticator.cs
- DataGridAutoFormat.cs
- SortedDictionary.cs
- MessageTraceRecord.cs
- LineSegment.cs
- LineMetrics.cs
- SettingsPropertyNotFoundException.cs
- GraphicsPathIterator.cs
- ClickablePoint.cs
- StructuralObject.cs
- TransformConverter.cs
- PixelFormats.cs
- Evidence.cs
- DbProviderFactoriesConfigurationHandler.cs
- Button.cs
- RuleSetReference.cs
- ContainerUIElement3D.cs
- SecurityTokenProvider.cs
- EntitySetDataBindingList.cs
- SourceFilter.cs
- AsyncResult.cs
- SimpleMailWebEventProvider.cs
- WebPartDisplayModeEventArgs.cs
- ElementUtil.cs
- CustomCredentialPolicy.cs
- CodePageEncoding.cs
- FastPropertyAccessor.cs
- DockPatternIdentifiers.cs
- WebPartDisplayModeEventArgs.cs
- WasAdminWrapper.cs
- SelectionListComponentEditor.cs
- BoolLiteral.cs
- DesignerVerb.cs
- ActivationArguments.cs
- ToolStripDropDownClosedEventArgs.cs
- StretchValidation.cs
- WsrmFault.cs
- StorageScalarPropertyMapping.cs
- ApplicationFileCodeDomTreeGenerator.cs
- VirtualPathData.cs
- CfgSemanticTag.cs
- MethodRental.cs
- CompiledQueryCacheEntry.cs
- ExpressionNode.cs
- EncoderReplacementFallback.cs
- ContextProperty.cs
- XPathNodeList.cs
- GlobalizationAssembly.cs
- StrokeCollection2.cs
- Rectangle.cs
- DataBinder.cs
- Avt.cs
- DeleteStoreRequest.cs
- PowerStatus.cs
- DataGridViewCellConverter.cs
- DbDataReader.cs
- HostingEnvironmentSection.cs
- GeneralTransformCollection.cs
- ExpandCollapsePattern.cs
- NativeMethods.cs
- ConfigurationValidatorAttribute.cs
- ToolstripProfessionalRenderer.cs
- SystemPens.cs
- MailDefinition.cs
- LineServicesRun.cs
- Int16KeyFrameCollection.cs
- OciEnlistContext.cs
- DeclaredTypeValidatorAttribute.cs
- ScaleTransform3D.cs
- InvalidDataException.cs
- ArgumentsParser.cs
- OleAutBinder.cs
- SqlXml.cs
- LassoSelectionBehavior.cs
- TriggerCollection.cs
- TypeReference.cs
- SoapConverter.cs
- Validator.cs
- Utility.cs
- DesignTimeParseData.cs
- XmlSchemaFacet.cs
- CheckBox.cs
- Literal.cs
- DataGridItemCollection.cs
- AnnouncementSendsAsyncResult.cs
- bindurihelper.cs
- WebPartEditorOkVerb.cs
- SiteMapDataSourceView.cs
- QueryExpr.cs
- CompilationUtil.cs
- TreeNode.cs
- DoubleLinkList.cs
- DeclarationUpdate.cs
- MetadataArtifactLoaderResource.cs
- SByteConverter.cs