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
- _UncName.cs
- MetadataSet.cs
- StrokeNodeData.cs
- BCryptHashAlgorithm.cs
- InstanceContextMode.cs
- Stackframe.cs
- SqlWebEventProvider.cs
- EventDescriptor.cs
- OSFeature.cs
- BitFlagsGenerator.cs
- ColumnMap.cs
- ParameterModifier.cs
- Stack.cs
- SystemIPGlobalStatistics.cs
- XamlTypeWithExplicitNamespace.cs
- PropertyDescriptorGridEntry.cs
- JsonUriDataContract.cs
- BindingGroup.cs
- Geometry3D.cs
- DataBoundControlParameterTarget.cs
- ArgumentNullException.cs
- SpecularMaterial.cs
- GregorianCalendarHelper.cs
- DefaultPropertyAttribute.cs
- TabControl.cs
- CallbackDebugBehavior.cs
- DbCommandTree.cs
- SolidBrush.cs
- BasicAsyncResult.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Registry.cs
- AVElementHelper.cs
- InkCanvas.cs
- UIElementParaClient.cs
- AsyncOperation.cs
- ToolStripRendererSwitcher.cs
- ProgressBar.cs
- ControlParser.cs
- VScrollProperties.cs
- BehaviorEditorPart.cs
- BitmapInitialize.cs
- GeometryDrawing.cs
- OracleSqlParser.cs
- PrimitiveXmlSerializers.cs
- ComponentEditorForm.cs
- Variable.cs
- objectresult_tresulttype.cs
- TemplatedWizardStep.cs
- VarInfo.cs
- HierarchicalDataTemplate.cs
- ProtectedConfigurationProviderCollection.cs
- RayMeshGeometry3DHitTestResult.cs
- ArrayElementGridEntry.cs
- processwaithandle.cs
- SimpleBitVector32.cs
- TextFormatterContext.cs
- DbMetaDataCollectionNames.cs
- ExternalCalls.cs
- BindingExpressionUncommonField.cs
- XmlHelper.cs
- SoapBinding.cs
- TemplateComponentConnector.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RandomDelayQueuedSendsAsyncResult.cs
- Assert.cs
- StateRuntime.cs
- Int64.cs
- ProxyBuilder.cs
- AssociativeAggregationOperator.cs
- UnsafeNativeMethods.cs
- Guid.cs
- BrowserCapabilitiesCompiler.cs
- InputScopeManager.cs
- XmlNodeChangedEventManager.cs
- embossbitmapeffect.cs
- DataViewManagerListItemTypeDescriptor.cs
- ConfigXmlSignificantWhitespace.cs
- IncomingWebRequestContext.cs
- VScrollBar.cs
- BoundColumn.cs
- ResourceDefaultValueAttribute.cs
- StrokeDescriptor.cs
- ImageListStreamer.cs
- PageClientProxyGenerator.cs
- NavigationPropertyEmitter.cs
- MobileFormsAuthentication.cs
- MailSettingsSection.cs
- SubclassTypeValidatorAttribute.cs
- DrawingCollection.cs
- DependsOnAttribute.cs
- FontStretch.cs
- FileIOPermission.cs
- SoapServerMethod.cs
- HtmlElementEventArgs.cs
- PrivateFontCollection.cs
- ScrollProviderWrapper.cs
- SqlIdentifier.cs
- FlowNode.cs
- SqlReorderer.cs
- RtfToXamlReader.cs