Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / InvokePattern.cs / 1 / InvokePattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for Invoke Pattern // // History: // 06/23/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Represents objects that have a single, unambiguous, action associated with them. /// /// Examples of UI that implments this includes: /// Push buttons /// Hyperlinks /// Menu items /// Radio buttons /// Check boxes /// #if (INTERNAL_COMPILE) internal class InvokePattern: BasePattern #else public class InvokePattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private InvokePattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///Invokable pattern public static readonly AutomationPattern Pattern = InvokePatternIdentifiers.Pattern; ///Event ID: Invoked - event used to watch for Invokable pattern Invoked events public static readonly AutomationEvent InvokedEvent = InvokePatternIdentifiers.InvokedEvent; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Request that the control initiate its action. /// Should return immediately without blocking. /// There is no way to determine what happened, when it happend, or whether /// anything happened at all. /// /// ////// This API does not work inside the secure execution environment. /// public void Invoke() { UiaCoreApi.InvokePattern_Invoke(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties // No properties #endregion Public Properties //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new InvokePattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // 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: Client-side wrapper for Invoke Pattern // // History: // 06/23/2003 : BrendanM Ported to WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; namespace System.Windows.Automation { ////// Represents objects that have a single, unambiguous, action associated with them. /// /// Examples of UI that implments this includes: /// Push buttons /// Hyperlinks /// Menu items /// Radio buttons /// Check boxes /// #if (INTERNAL_COMPILE) internal class InvokePattern: BasePattern #else public class InvokePattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private InvokePattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///Invokable pattern public static readonly AutomationPattern Pattern = InvokePatternIdentifiers.Pattern; ///Event ID: Invoked - event used to watch for Invokable pattern Invoked events public static readonly AutomationEvent InvokedEvent = InvokePatternIdentifiers.InvokedEvent; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Request that the control initiate its action. /// Should return immediately without blocking. /// There is no way to determine what happened, when it happend, or whether /// anything happened at all. /// /// ////// This API does not work inside the secure execution environment. /// public void Invoke() { UiaCoreApi.InvokePattern_Invoke(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties // No properties #endregion Public Properties //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- #region Internal Methods internal static object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new InvokePattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.///
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentChangingEvent.cs
- Attributes.cs
- RootBrowserWindowProxy.cs
- ActivatedMessageQueue.cs
- XmlName.cs
- Context.cs
- PopupControlService.cs
- RootProfilePropertySettingsCollection.cs
- GeneralTransform.cs
- PropertyBuilder.cs
- _OSSOCK.cs
- selecteditemcollection.cs
- CalloutQueueItem.cs
- TimeoutStream.cs
- metrodevice.cs
- X509CertificateCollection.cs
- SQLUtility.cs
- HttpCachePolicyWrapper.cs
- Mappings.cs
- ProviderCommandInfoUtils.cs
- PathStreamGeometryContext.cs
- PeerCollaboration.cs
- InfoCardSymmetricCrypto.cs
- autovalidator.cs
- ReliableInputConnection.cs
- DoubleCollection.cs
- SystemColors.cs
- MsmqIntegrationMessageProperty.cs
- Claim.cs
- WebBrowserUriTypeConverter.cs
- InsufficientMemoryException.cs
- DataGridViewHeaderCell.cs
- CodeTypeReferenceCollection.cs
- ScopelessEnumAttribute.cs
- MobileControlsSection.cs
- AppDomain.cs
- _UriTypeConverter.cs
- QualifierSet.cs
- SqlBooleanMismatchVisitor.cs
- CaseInsensitiveHashCodeProvider.cs
- DiscoveryInnerClientManaged11.cs
- SynchronousReceiveElement.cs
- BitmapScalingModeValidation.cs
- ipaddressinformationcollection.cs
- BaseConfigurationRecord.cs
- BridgeDataReader.cs
- PackageRelationshipCollection.cs
- ServiceAppDomainAssociationProvider.cs
- MetadataPropertyAttribute.cs
- Accessible.cs
- LowerCaseStringConverter.cs
- ServiceManager.cs
- ISSmlParser.cs
- WebSysDescriptionAttribute.cs
- Viewport3DVisual.cs
- MetadataSerializer.cs
- LocalizedNameDescriptionPair.cs
- RelationshipEndMember.cs
- CatalogUtil.cs
- ToolStripDropDownMenu.cs
- VerificationAttribute.cs
- PackagePartCollection.cs
- PageCodeDomTreeGenerator.cs
- EpmCustomContentWriterNodeData.cs
- LocalFileSettingsProvider.cs
- PeerNameRegistration.cs
- CharEntityEncoderFallback.cs
- ServicesUtilities.cs
- PictureBox.cs
- Label.cs
- IPipelineRuntime.cs
- SQLConvert.cs
- TypedAsyncResult.cs
- ListItemCollection.cs
- TimeSpan.cs
- AbstractSvcMapFileLoader.cs
- MailSettingsSection.cs
- OneOfScalarConst.cs
- MetadataPropertyvalue.cs
- SetStoryboardSpeedRatio.cs
- StringAttributeCollection.cs
- CompareInfo.cs
- TableRow.cs
- DataGridItemEventArgs.cs
- QuaternionValueSerializer.cs
- DataGridViewHeaderCell.cs
- ActiveXHost.cs
- XPathPatternParser.cs
- ListViewDataItem.cs
- AppSettingsReader.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WebPartExportVerb.cs
- _RequestLifetimeSetter.cs
- ByteStack.cs
- SerializationInfoEnumerator.cs
- SoapMessage.cs
- DbReferenceCollection.cs
- BaseCodeDomTreeGenerator.cs
- BaseDataListActionList.cs
- FocusTracker.cs