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
- FragmentQuery.cs
- DeclarationUpdate.cs
- ObjectToIdCache.cs
- CqlLexer.cs
- IpcClientChannel.cs
- PeerNodeTraceRecord.cs
- AppDomainFactory.cs
- AspNetSynchronizationContext.cs
- InsufficientMemoryException.cs
- StrongNamePublicKeyBlob.cs
- MatrixTransform3D.cs
- DesignerActionPropertyItem.cs
- Scripts.cs
- UInt32.cs
- ItemAutomationPeer.cs
- DesignTimeTemplateParser.cs
- MethodImplAttribute.cs
- PageCodeDomTreeGenerator.cs
- ObjectItemCachedAssemblyLoader.cs
- CodeGotoStatement.cs
- MulticastIPAddressInformationCollection.cs
- SingleKeyFrameCollection.cs
- DigitShape.cs
- SingleSelectRootGridEntry.cs
- SpecularMaterial.cs
- FormsAuthenticationModule.cs
- TextServicesDisplayAttribute.cs
- LogRecordSequence.cs
- MsdtcClusterUtils.cs
- SafeSystemMetrics.cs
- SystemWebCachingSectionGroup.cs
- SqlMethodCallConverter.cs
- HtmlTableRowCollection.cs
- _HeaderInfo.cs
- TracePayload.cs
- LogicalChannel.cs
- GenericUriParser.cs
- ConfigurationElementCollection.cs
- PEFileEvidenceFactory.cs
- TimeoutTimer.cs
- XdrBuilder.cs
- WinEventWrap.cs
- Baml2006KeyRecord.cs
- EditorZoneBase.cs
- _LocalDataStore.cs
- ProcessHostMapPath.cs
- ServicePointManager.cs
- PtsHelper.cs
- ErrorHandler.cs
- MsiStyleLogWriter.cs
- LinkConverter.cs
- Evaluator.cs
- SafeMILHandle.cs
- Roles.cs
- CharacterMetricsDictionary.cs
- EpmContentDeSerializerBase.cs
- Attribute.cs
- AttributeAction.cs
- _NestedSingleAsyncResult.cs
- XmlNavigatorStack.cs
- NativeRightsManagementAPIsStructures.cs
- MenuEventArgs.cs
- ProfilePropertySettingsCollection.cs
- PrintPreviewDialog.cs
- OdbcHandle.cs
- DataContractSerializerFaultFormatter.cs
- DesignBindingPropertyDescriptor.cs
- FileLoadException.cs
- TimelineGroup.cs
- BindingEntityInfo.cs
- InfoCardTrace.cs
- _FixedSizeReader.cs
- IndexedWhereQueryOperator.cs
- CapabilitiesAssignment.cs
- XmlHierarchyData.cs
- EntityStoreSchemaGenerator.cs
- ListBase.cs
- DocumentXPathNavigator.cs
- HttpValueCollection.cs
- DrawingState.cs
- LinearGradientBrush.cs
- KeyValueInternalCollection.cs
- DataGridBeginningEditEventArgs.cs
- LayeredChannelListener.cs
- OleDbException.cs
- SmiEventSink_Default.cs
- DateTimeConverter2.cs
- ReadWriteObjectLock.cs
- AmbientProperties.cs
- __FastResourceComparer.cs
- DataKeyPropertyAttribute.cs
- StringBlob.cs
- BaseUriHelper.cs
- LinqTreeNodeEvaluator.cs
- LayoutTable.cs
- TextRange.cs
- LayoutTable.cs
- GPPOINT.cs
- InternalCache.cs
- ValidationResult.cs