Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- FixedSOMContainer.cs
- TypefaceCollection.cs
- Transform.cs
- FormViewUpdateEventArgs.cs
- GPStream.cs
- DateTimeOffset.cs
- DataObjectAttribute.cs
- DBSqlParser.cs
- ParameterModifier.cs
- DataGridColumn.cs
- UnsafeNativeMethods.cs
- CryptoStream.cs
- XslNumber.cs
- SymDocumentType.cs
- GetPageCompletedEventArgs.cs
- ActivityDesignerHighlighter.cs
- CancellationHandlerDesigner.cs
- WaveHeader.cs
- RegisteredDisposeScript.cs
- KeyedHashAlgorithm.cs
- DataGridViewCellStyleBuilderDialog.cs
- AuthStoreRoleProvider.cs
- DocumentSequenceHighlightLayer.cs
- ArrayConverter.cs
- StateBag.cs
- RegistryConfigurationProvider.cs
- BinaryNode.cs
- CodeMemberMethod.cs
- CodeTypeMember.cs
- Solver.cs
- StylusLogic.cs
- XmlRawWriter.cs
- DataSourceBooleanViewSchemaConverter.cs
- Roles.cs
- MatrixCamera.cs
- SpellerError.cs
- EventBuilder.cs
- Int32RectValueSerializer.cs
- EntityClientCacheKey.cs
- MultipleCopiesCollection.cs
- ToolTip.cs
- FunctionImportElement.cs
- Trace.cs
- FileIOPermission.cs
- ProvidersHelper.cs
- ToolStripMenuItem.cs
- SystemInformation.cs
- DataGridViewCellLinkedList.cs
- BuildManagerHost.cs
- RC2.cs
- Compiler.cs
- TextServicesManager.cs
- KeyboardDevice.cs
- SchemaImporterExtensionElement.cs
- AccessKeyManager.cs
- SafeArchiveContext.cs
- EpmAttributeNameBuilder.cs
- UInt32Storage.cs
- HttpHandlerActionCollection.cs
- UnsafeNativeMethodsPenimc.cs
- VectorCollection.cs
- BindingExpression.cs
- ChannelPool.cs
- ACL.cs
- CreateUserWizard.cs
- CfgParser.cs
- ToolStripDropDownButton.cs
- RightsManagementErrorHandler.cs
- SpeakCompletedEventArgs.cs
- ViewCellSlot.cs
- ScaleTransform.cs
- RowUpdatedEventArgs.cs
- Debug.cs
- ADConnectionHelper.cs
- XComponentModel.cs
- DataBindEngine.cs
- OutOfProcStateClientManager.cs
- XPathEmptyIterator.cs
- TemplatedEditableDesignerRegion.cs
- WSHttpBinding.cs
- FrameAutomationPeer.cs
- TypeDescriptorFilterService.cs
- HotSpotCollectionEditor.cs
- SchemaImporterExtension.cs
- XsltLoader.cs
- SimpleBitVector32.cs
- ListViewEditEventArgs.cs
- XmlResolver.cs
- BaseParaClient.cs
- XPathParser.cs
- Relationship.cs
- OutputScopeManager.cs
- BmpBitmapDecoder.cs
- XmlEncodedRawTextWriter.cs
- WindowsRegion.cs
- DefaultTraceListener.cs
- LogicalTreeHelper.cs
- EmptyEnumerator.cs
- PagerSettings.cs
- TabControlCancelEvent.cs