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
- BitVector32.cs
- MimeTypeMapper.cs
- GeometryDrawing.cs
- OutputCacheSettingsSection.cs
- QueryLifecycle.cs
- StringFunctions.cs
- ConfigurationManagerHelperFactory.cs
- TemplateControl.cs
- Stack.cs
- DebugView.cs
- DesignUtil.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- WsdlHelpGeneratorElement.cs
- XsltException.cs
- ObjectStateFormatter.cs
- WhileDesigner.xaml.cs
- AlternateView.cs
- MimeMapping.cs
- GeometryGroup.cs
- SqlException.cs
- columnmapkeybuilder.cs
- TimeSpanStorage.cs
- WizardStepBase.cs
- LineMetrics.cs
- ArrangedElementCollection.cs
- ErrorFormatter.cs
- BamlReader.cs
- ListViewUpdatedEventArgs.cs
- Stream.cs
- DataGridViewColumnConverter.cs
- QueryConverter.cs
- ConditionalBranch.cs
- DbDataReader.cs
- OleDbException.cs
- DataGridViewCellValidatingEventArgs.cs
- TextTabProperties.cs
- ToolStripDropDownMenu.cs
- TextProperties.cs
- CompositeFontParser.cs
- NavigationFailedEventArgs.cs
- Int32Collection.cs
- DataContractAttribute.cs
- BulletedListEventArgs.cs
- ExpressionValueEditor.cs
- CodeIterationStatement.cs
- DataGridLinkButton.cs
- TypeForwardedFromAttribute.cs
- TargetControlTypeCache.cs
- HierarchicalDataSourceControl.cs
- ErrorFormatterPage.cs
- CmsInterop.cs
- DataGridTextBoxColumn.cs
- CompressedStack.cs
- BookmarkInfo.cs
- WindowsRegion.cs
- MouseGestureValueSerializer.cs
- XmlException.cs
- ReturnValue.cs
- MetadataFile.cs
- ViewCellRelation.cs
- XPathAncestorQuery.cs
- TextParagraph.cs
- ProfileSection.cs
- HttpProcessUtility.cs
- CompilationSection.cs
- TextProperties.cs
- SamlAuthenticationStatement.cs
- DataSysAttribute.cs
- XPathParser.cs
- ViewPort3D.cs
- BlurBitmapEffect.cs
- Module.cs
- LayoutDump.cs
- WpfPayload.cs
- UpDownEvent.cs
- GeneralTransform2DTo3DTo2D.cs
- XmlDataSource.cs
- ResizeBehavior.cs
- DataGridViewColumnHeaderCell.cs
- HtmlHead.cs
- LoginName.cs
- XPathNodeHelper.cs
- CodeCatchClauseCollection.cs
- METAHEADER.cs
- PageStatePersister.cs
- ComboBox.cs
- TimelineGroup.cs
- EntityProviderServices.cs
- COM2ExtendedBrowsingHandler.cs
- DBSchemaRow.cs
- CommandEventArgs.cs
- TrustManager.cs
- XmlWriterDelegator.cs
- VirtualizedCellInfoCollection.cs
- MimeObjectFactory.cs
- Cursor.cs
- XmlDataImplementation.cs
- CapabilitiesAssignment.cs
- Socket.cs
- Resources.Designer.cs