Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StringFormat.cs
- DLinqTableProvider.cs
- RuleSettingsCollection.cs
- StylusTouchDevice.cs
- XmlSerializationWriter.cs
- ActiveXContainer.cs
- FormViewUpdatedEventArgs.cs
- XmlSchemaObjectCollection.cs
- XmlAttributeCollection.cs
- CfgParser.cs
- JavascriptCallbackResponseProperty.cs
- KeyedHashAlgorithm.cs
- ClientScriptManager.cs
- NativeMethods.cs
- TextLine.cs
- DropShadowEffect.cs
- EngineSiteSapi.cs
- MessageQueuePermissionEntry.cs
- SequenceRange.cs
- HttpHandler.cs
- XmlSerializerNamespaces.cs
- DefaultSerializationProviderAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- TextEndOfSegment.cs
- RegionData.cs
- CallbackException.cs
- DataGridViewBand.cs
- SecurityKeyIdentifierClause.cs
- GB18030Encoding.cs
- processwaithandle.cs
- MatrixValueSerializer.cs
- DBConnection.cs
- HttpStaticObjectsCollectionWrapper.cs
- XmlNavigatorFilter.cs
- TreeViewImageIndexConverter.cs
- ValidationRule.cs
- GeneralTransform2DTo3D.cs
- EncryptedXml.cs
- StringAttributeCollection.cs
- TextEvent.cs
- LicFileLicenseProvider.cs
- BuilderElements.cs
- CollectionMarkupSerializer.cs
- CommandExpr.cs
- ProgramPublisher.cs
- HttpApplicationStateWrapper.cs
- QueryInterceptorAttribute.cs
- PersistenceContextEnlistment.cs
- WmlLiteralTextAdapter.cs
- BamlLocalizableResource.cs
- MenuItemStyleCollection.cs
- FileLevelControlBuilderAttribute.cs
- ToolboxComponentsCreatedEventArgs.cs
- PropertyEmitter.cs
- OLEDB_Enum.cs
- MultiView.cs
- DataControlFieldCell.cs
- NativeRecognizer.cs
- Track.cs
- SafePEFileHandle.cs
- typedescriptorpermissionattribute.cs
- MachineKeySection.cs
- FolderBrowserDialogDesigner.cs
- CharAnimationBase.cs
- EditorPartChrome.cs
- ResXDataNode.cs
- PropertyInformation.cs
- WebPartCancelEventArgs.cs
- WorkflowMarkupSerializationProvider.cs
- TransformerInfoCollection.cs
- HotSpot.cs
- ContextStaticAttribute.cs
- SplashScreenNativeMethods.cs
- Hex.cs
- SqlDataSourceCommandEventArgs.cs
- SqlMethodCallConverter.cs
- PeerNodeTraceRecord.cs
- SettingsAttributes.cs
- NodeLabelEditEvent.cs
- BamlLocalizabilityResolver.cs
- DiagnosticsElement.cs
- OracleTransaction.cs
- DllNotFoundException.cs
- FormViewPagerRow.cs
- WorkflowViewManager.cs
- HttpHeaderCollection.cs
- GridViewSelectEventArgs.cs
- FacetDescriptionElement.cs
- M3DUtil.cs
- SoapAttributeAttribute.cs
- XmlSchemaAttribute.cs
- CompilerScope.Storage.cs
- OutputCacheSettingsSection.cs
- AsymmetricKeyExchangeFormatter.cs
- OperationParameterInfoCollection.cs
- LockCookie.cs
- _ListenerRequestStream.cs
- FileVersion.cs
- DispatcherObject.cs
- LicenseProviderAttribute.cs