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
- CellTreeNode.cs
- ManagementDateTime.cs
- ActivityCodeDomReferenceService.cs
- BrushValueSerializer.cs
- ThrowHelper.cs
- HostingEnvironmentWrapper.cs
- DocumentCollection.cs
- SessionStateUtil.cs
- SQLBytesStorage.cs
- AttributeConverter.cs
- XPathArrayIterator.cs
- GridViewUpdatedEventArgs.cs
- SelectionPatternIdentifiers.cs
- MenuAutoFormat.cs
- DnsElement.cs
- ReversePositionQuery.cs
- ConfigurationProperty.cs
- EntityViewGenerator.cs
- Monitor.cs
- SourceFilter.cs
- HtmlEmptyTagControlBuilder.cs
- GB18030Encoding.cs
- BamlBinaryReader.cs
- Win32.cs
- ExceptionUtil.cs
- Win32SafeHandles.cs
- AlignmentYValidation.cs
- ElementMarkupObject.cs
- Baml2006ReaderSettings.cs
- AttributeQuery.cs
- TextRunCache.cs
- KeyPressEvent.cs
- Rotation3DKeyFrameCollection.cs
- RequestReplyCorrelator.cs
- GroupAggregateExpr.cs
- NativeMethods.cs
- GroupBoxRenderer.cs
- TemplateNodeContextMenu.cs
- PasswordTextContainer.cs
- RtfControls.cs
- RegistryHandle.cs
- KeysConverter.cs
- StickyNote.cs
- regiisutil.cs
- Application.cs
- ProgressBarHighlightConverter.cs
- HttpValueCollection.cs
- ManipulationInertiaStartingEventArgs.cs
- UpdatableGenericsFeature.cs
- EventQueueState.cs
- StylusEventArgs.cs
- BrowsableAttribute.cs
- StringArrayConverter.cs
- ListSortDescriptionCollection.cs
- ImageInfo.cs
- DynamicObjectAccessor.cs
- StringBlob.cs
- ProfileSection.cs
- BuildProviderUtils.cs
- RenderingBiasValidation.cs
- TCPClient.cs
- HttpProfileGroupBase.cs
- LoginUtil.cs
- AttributedMetaModel.cs
- WindowsToolbarAsMenu.cs
- SqlNodeAnnotation.cs
- Dispatcher.cs
- CellParagraph.cs
- WebConvert.cs
- LineServicesCallbacks.cs
- NativeMethods.cs
- RightsManagementInformation.cs
- Renderer.cs
- ScriptControl.cs
- SimpleFileLog.cs
- PauseStoryboard.cs
- MessageTraceRecord.cs
- BindingContext.cs
- CodeMemberField.cs
- PermissionToken.cs
- UInt32.cs
- TrustSection.cs
- PeerNameRecord.cs
- HexParser.cs
- ObjectStateEntry.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- PackUriHelper.cs
- FocusChangedEventArgs.cs
- SecurityContext.cs
- SQLGuid.cs
- FormsAuthenticationConfiguration.cs
- CacheDependency.cs
- RelatedEnd.cs
- ClonableStack.cs
- ArrayItemValue.cs
- TopClause.cs
- XmlValidatingReader.cs
- ExecutionEngineException.cs
- CLRBindingWorker.cs
- RectAnimation.cs