Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / NotifyInputEventArgs.cs / 1 / 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
- Viewport2DVisual3D.cs
- initElementDictionary.cs
- ParentUndoUnit.cs
- Int32.cs
- FrameworkContentElementAutomationPeer.cs
- WindowsListViewScroll.cs
- XPathItem.cs
- IssuanceTokenProviderBase.cs
- ExtendedProtectionPolicy.cs
- Block.cs
- WindowsListViewItemStartMenu.cs
- PiiTraceSource.cs
- TcpActivation.cs
- SoapElementAttribute.cs
- RemoteWebConfigurationHostServer.cs
- SiteMapSection.cs
- DefaultValueConverter.cs
- DesignerLabelAdapter.cs
- EntitySqlQueryBuilder.cs
- ResumeStoryboard.cs
- IssuedSecurityTokenParameters.cs
- XmlNodeReader.cs
- VirtualDirectoryMappingCollection.cs
- OAVariantLib.cs
- InputBuffer.cs
- SerializationException.cs
- PageHandlerFactory.cs
- EdmType.cs
- DetailsViewDeleteEventArgs.cs
- DeflateStream.cs
- PenCursorManager.cs
- ProfilePropertyNameValidator.cs
- CustomErrorsSection.cs
- InputMethodStateChangeEventArgs.cs
- TreeNodeStyleCollection.cs
- PseudoWebRequest.cs
- TableItemStyle.cs
- base64Transforms.cs
- CacheEntry.cs
- ThicknessConverter.cs
- PreloadedPackages.cs
- PasswordBox.cs
- QualificationDataAttribute.cs
- ManagementPath.cs
- XmlCompatibilityReader.cs
- ButtonBaseAutomationPeer.cs
- GeneralTransform3DCollection.cs
- CheckBoxFlatAdapter.cs
- CodeTypeParameterCollection.cs
- DllNotFoundException.cs
- XmlSchemaImport.cs
- ImageConverter.cs
- Parameter.cs
- XmlAtomicValue.cs
- ProviderIncompatibleException.cs
- TextSchema.cs
- EtwProvider.cs
- MarkedHighlightComponent.cs
- StorageEntityContainerMapping.cs
- ItemCollection.cs
- XappLauncher.cs
- BufferedStream.cs
- PersonalizationStateInfoCollection.cs
- TripleDES.cs
- XmlLangPropertyAttribute.cs
- CustomLineCap.cs
- Script.cs
- KnownTypes.cs
- Proxy.cs
- PolyBezierSegment.cs
- MembershipPasswordException.cs
- TransactionInformation.cs
- DataGridCell.cs
- ListenerElementsCollection.cs
- TimeBoundedCache.cs
- AppModelKnownContentFactory.cs
- FlowDocumentScrollViewer.cs
- XmlSerializerFactory.cs
- BuildProviderAppliesToAttribute.cs
- SelectionListDesigner.cs
- TimeBoundedCache.cs
- AccessorTable.cs
- WindowsToolbarItemAsMenuItem.cs
- GPRECTF.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DBConcurrencyException.cs
- UidManager.cs
- DocumentPageHost.cs
- WindowVisualStateTracker.cs
- TextMetrics.cs
- SessionStateSection.cs
- DataKeyCollection.cs
- HttpDictionary.cs
- SemaphoreFullException.cs
- DrawingAttributeSerializer.cs
- ExpressionPrinter.cs
- AnonymousIdentificationModule.cs
- XmlLoader.cs
- PolyLineSegment.cs
- BooleanSwitch.cs