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
- SizeValueSerializer.cs
- HostedImpersonationContext.cs
- ELinqQueryState.cs
- Path.cs
- CheckPair.cs
- CustomWebEventKey.cs
- SafeNativeMethods.cs
- DataGridTablesFactory.cs
- COM2ComponentEditor.cs
- XmlAnyAttributeAttribute.cs
- FixedStringLookup.cs
- UnsafeNativeMethods.cs
- OleDbPropertySetGuid.cs
- SafeThemeHandle.cs
- PtsHost.cs
- MsmqChannelFactory.cs
- FindCriteria.cs
- WindowsSolidBrush.cs
- FormViewModeEventArgs.cs
- KeyValuePair.cs
- WebPartConnectionsEventArgs.cs
- PerformanceCounter.cs
- ListViewUpdateEventArgs.cs
- DataBindingList.cs
- EntityViewGenerationAttribute.cs
- GridLengthConverter.cs
- Translator.cs
- ConfigViewGenerator.cs
- MouseBinding.cs
- SynchronizationLockException.cs
- ElementHostAutomationPeer.cs
- GraphicsContainer.cs
- PieceDirectory.cs
- SiteIdentityPermission.cs
- DLinqColumnProvider.cs
- iisPickupDirectory.cs
- HtmlHistory.cs
- UInt16Storage.cs
- WebZone.cs
- SqlTransaction.cs
- BuildProviderUtils.cs
- NeutralResourcesLanguageAttribute.cs
- CodePropertyReferenceExpression.cs
- UserControl.cs
- AvTraceFormat.cs
- TrustLevelCollection.cs
- ModuleBuilder.cs
- RequestFactory.cs
- WindowsIdentity.cs
- handlecollector.cs
- CompositeScriptReference.cs
- CodeGenHelper.cs
- ZipIOExtraFieldPaddingElement.cs
- NullableLongMinMaxAggregationOperator.cs
- AutoGeneratedFieldProperties.cs
- InvokeMethodActivity.cs
- WebPartConnection.cs
- RootBuilder.cs
- HtmlObjectListAdapter.cs
- RouteParser.cs
- Pair.cs
- RC2.cs
- RawStylusInputCustomData.cs
- XsltArgumentList.cs
- ListBoxDesigner.cs
- EntityContainerAssociationSet.cs
- OneOfConst.cs
- CompensableActivity.cs
- RSAOAEPKeyExchangeFormatter.cs
- OrderPreservingPipeliningMergeHelper.cs
- ObjectListFieldsPage.cs
- ToolStripRenderer.cs
- VectorKeyFrameCollection.cs
- DrawingGroup.cs
- ItemDragEvent.cs
- LinqDataSourceDeleteEventArgs.cs
- FormViewActionList.cs
- ConfigurationManagerHelperFactory.cs
- HostExecutionContextManager.cs
- FormatConvertedBitmap.cs
- HttpResponseHeader.cs
- MethodCallTranslator.cs
- Dispatcher.cs
- Stack.cs
- InteropTrackingRecord.cs
- ProfilePropertyNameValidator.cs
- DesignerForm.cs
- BrowserCapabilitiesCodeGenerator.cs
- ComponentChangedEvent.cs
- UpdateExpressionVisitor.cs
- _IPv4Address.cs
- SoapEnumAttribute.cs
- BindingNavigator.cs
- UserControl.cs
- BoundsDrawingContextWalker.cs
- CryptographicAttribute.cs
- OdbcStatementHandle.cs
- LeafCellTreeNode.cs
- OdbcEnvironmentHandle.cs
- ClientOptions.cs