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
- WebPartEditorApplyVerb.cs
- HeaderedItemsControl.cs
- CngAlgorithm.cs
- ResourceContainerWrapper.cs
- TraceUtils.cs
- RoleGroup.cs
- DesignerCategoryAttribute.cs
- StreamInfo.cs
- WebPartDisplayModeCancelEventArgs.cs
- CheckableControlBaseAdapter.cs
- AudioFileOut.cs
- GridViewSelectEventArgs.cs
- SafeThemeHandle.cs
- InputScopeNameConverter.cs
- RNGCryptoServiceProvider.cs
- RedistVersionInfo.cs
- HierarchicalDataBoundControlAdapter.cs
- WebServiceEnumData.cs
- DispatcherHooks.cs
- mediaeventargs.cs
- TrustLevel.cs
- LinqDataSourceStatusEventArgs.cs
- EnumBuilder.cs
- PresentationSource.cs
- MenuItemCollection.cs
- MediaElementAutomationPeer.cs
- HuffmanTree.cs
- ObjectDataSourceFilteringEventArgs.cs
- PowerModeChangedEventArgs.cs
- EllipseGeometry.cs
- SoapIncludeAttribute.cs
- Stack.cs
- DashStyle.cs
- ServiceNameCollection.cs
- XmlElement.cs
- PassportAuthenticationEventArgs.cs
- ColumnCollection.cs
- Region.cs
- BamlMapTable.cs
- ObjectList.cs
- FormViewDeleteEventArgs.cs
- PictureBox.cs
- ActiveDocumentEvent.cs
- StaticSiteMapProvider.cs
- ReflectionServiceProvider.cs
- Mapping.cs
- FatalException.cs
- DataSourceView.cs
- Errors.cs
- Region.cs
- RowToFieldTransformer.cs
- EdmPropertyAttribute.cs
- ClientSideProviderDescription.cs
- XPathNode.cs
- GenerateScriptTypeAttribute.cs
- ControlPager.cs
- PropertyDescriptorComparer.cs
- StagingAreaInputItem.cs
- AnimatedTypeHelpers.cs
- Faults.cs
- SqlStatistics.cs
- GridViewRowPresenter.cs
- HtmlEncodedRawTextWriter.cs
- ButtonPopupAdapter.cs
- webeventbuffer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- RegexNode.cs
- VectorConverter.cs
- Walker.cs
- ProfileGroupSettingsCollection.cs
- WhereQueryOperator.cs
- ImageCollectionCodeDomSerializer.cs
- SizeValueSerializer.cs
- EmptyCollection.cs
- ParameterCollection.cs
- ReliableSessionBindingElement.cs
- OletxEnlistment.cs
- securestring.cs
- BoundConstants.cs
- URIFormatException.cs
- BulletedListEventArgs.cs
- NonBatchDirectoryCompiler.cs
- PartitionedStreamMerger.cs
- PageRanges.cs
- FeatureAttribute.cs
- DmlSqlGenerator.cs
- FlowDocumentReaderAutomationPeer.cs
- CheckedPointers.cs
- ScrollEvent.cs
- WindowCollection.cs
- CatalogPartChrome.cs
- _UncName.cs
- Propagator.JoinPropagator.cs
- LinqToSqlWrapper.cs
- EdmValidator.cs
- OutOfProcStateClientManager.cs
- RadioButtonStandardAdapter.cs
- RadioButton.cs
- TypedElement.cs
- ZipIOModeEnforcingStream.cs