Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / NotifyInputEventArgs.cs / 1305600 / NotifyInputEventArgs.cs
using System; using System.Collections; using System.Security.Permissions; using System.Security ; using MS.Internal; using MS.Internal.PresentationCore; // SecurityHelper namespace System.Windows.Input { ////// Provides information about an input event being processed by the /// input manager. /// ////// An instance of this class, or a derived class, is passed to the /// handlers of the following events: /// public class NotifyInputEventArgs : EventArgs { // Only we can make these. Note that we cache and reuse instances. internal NotifyInputEventArgs() {} //////
////// Critical - InputManager passed in is critical data. /// [SecurityCritical] internal virtual void Reset(StagingAreaInputItem input, InputManager inputManager) { _input = input; _inputManager = inputManager; } ////// The staging area input item being processed by the input /// manager. /// public StagingAreaInputItem StagingItem {get {return _input;}} ////// The input manager processing the input event. /// ////// Callers must have UIPermission(PermissionState.Unrestricted) to call this API. /// ////// Critical - input manager is critical /// PublicOK - there's a demand. /// public InputManager InputManager { [SecurityCritical ] get { SecurityHelper.DemandUnrestrictedUIPermission(); return _inputManager; } } ////// The input manager processing the input event. /// *** FOR INTERNAL USE ONLY **** /// ////// Critical - input manager is critical /// internal InputManager UnsecureInputManager { [SecurityCritical] get { return _inputManager; } } private StagingAreaInputItem _input; ////// Critical data as InputManager ctor is critical. /// [SecurityCritical] private InputManager _inputManager; } ////// Delegate type for handles of events that use /// public delegate void NotifyInputEventHandler(object sender, NotifyInputEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Security.Permissions; using System.Security ; using MS.Internal; using MS.Internal.PresentationCore; // SecurityHelper namespace System.Windows.Input { ///. /// /// Provides information about an input event being processed by the /// input manager. /// ////// An instance of this class, or a derived class, is passed to the /// handlers of the following events: /// public class NotifyInputEventArgs : EventArgs { // Only we can make these. Note that we cache and reuse instances. internal NotifyInputEventArgs() {} //////
////// Critical - InputManager passed in is critical data. /// [SecurityCritical] internal virtual void Reset(StagingAreaInputItem input, InputManager inputManager) { _input = input; _inputManager = inputManager; } ////// The staging area input item being processed by the input /// manager. /// public StagingAreaInputItem StagingItem {get {return _input;}} ////// The input manager processing the input event. /// ////// Callers must have UIPermission(PermissionState.Unrestricted) to call this API. /// ////// Critical - input manager is critical /// PublicOK - there's a demand. /// public InputManager InputManager { [SecurityCritical ] get { SecurityHelper.DemandUnrestrictedUIPermission(); return _inputManager; } } ////// The input manager processing the input event. /// *** FOR INTERNAL USE ONLY **** /// ////// Critical - input manager is critical /// internal InputManager UnsecureInputManager { [SecurityCritical] get { return _inputManager; } } private StagingAreaInputItem _input; ////// Critical data as InputManager ctor is critical. /// [SecurityCritical] private InputManager _inputManager; } ////// Delegate type for handles of events that use /// public delegate void NotifyInputEventHandler(object sender, NotifyInputEventArgs e); } // 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
- WebPartMenuStyle.cs
- ISAPIApplicationHost.cs
- ScaleTransform3D.cs
- TypeConverterAttribute.cs
- sqlcontext.cs
- ColorContext.cs
- SqlTriggerContext.cs
- Process.cs
- CodeArrayCreateExpression.cs
- _Semaphore.cs
- EmbeddedObject.cs
- QueryStringConverter.cs
- ServiceDeploymentInfo.cs
- odbcmetadatacolumnnames.cs
- DataGridViewIntLinkedList.cs
- SerializationSectionGroup.cs
- PasswordPropertyTextAttribute.cs
- InsufficientMemoryException.cs
- RequestCachePolicy.cs
- NavigationWindow.cs
- NamedPipeTransportManager.cs
- GridViewRowCollection.cs
- StringFreezingAttribute.cs
- AdRotator.cs
- ListViewInsertionMark.cs
- RtfNavigator.cs
- CalendarSelectionChangedEventArgs.cs
- documentsequencetextview.cs
- DataGridViewControlCollection.cs
- DataBoundControlAdapter.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CheckBoxPopupAdapter.cs
- RegexTree.cs
- NetMsmqSecurity.cs
- TreeNodeClickEventArgs.cs
- DeferredElementTreeState.cs
- TextParaClient.cs
- EnumerableCollectionView.cs
- PersistenceTypeAttribute.cs
- InlineObject.cs
- WindowsStatusBar.cs
- TextStore.cs
- ToolStripItemCollection.cs
- SafeLibraryHandle.cs
- userdatakeys.cs
- TransactionChannelFactory.cs
- TableRow.cs
- CodeGotoStatement.cs
- QueryExpr.cs
- ApplicationHost.cs
- CookieHandler.cs
- PointKeyFrameCollection.cs
- WsdlImporterElement.cs
- FileDialogCustomPlace.cs
- figurelengthconverter.cs
- AssemblyResourceLoader.cs
- SharedDp.cs
- DropTarget.cs
- CoreSwitches.cs
- CompilerWrapper.cs
- TextProperties.cs
- SecurityManager.cs
- PermissionListSet.cs
- ComponentChangedEvent.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ScrollContentPresenter.cs
- CodeTypeMember.cs
- ServiceModelEnumValidator.cs
- GeneralTransform.cs
- FrameworkContentElement.cs
- AutomationPatternInfo.cs
- VirtualDirectoryMappingCollection.cs
- XPathAncestorQuery.cs
- FormParameter.cs
- SevenBitStream.cs
- EncryptedPackage.cs
- MasterPage.cs
- WorkflowInstanceContextProvider.cs
- CacheForPrimitiveTypes.cs
- DataSysAttribute.cs
- BuildResultCache.cs
- TagMapInfo.cs
- DrawingAttributeSerializer.cs
- RelationshipEndMember.cs
- SqlResolver.cs
- RegionData.cs
- EpmContentDeSerializer.cs
- RuleInfoComparer.cs
- UidManager.cs
- DesignerCategoryAttribute.cs
- ZoneMembershipCondition.cs
- PingReply.cs
- TrustManager.cs
- EntityProviderFactory.cs
- MarkupExtensionParser.cs
- InputReportEventArgs.cs
- MaskedTextBox.cs
- Material.cs
- ListBoxAutomationPeer.cs
- ResourceReferenceExpressionConverter.cs