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
- PerformanceCountersElement.cs
- HttpNamespaceReservationInstallComponent.cs
- ThaiBuddhistCalendar.cs
- SaveFileDialogDesigner.cs
- DBDataPermission.cs
- MessageQueueKey.cs
- ShaderEffect.cs
- InkCanvasAutomationPeer.cs
- LogicalCallContext.cs
- WorkflowValidationFailedException.cs
- BaseDataBoundControl.cs
- Facet.cs
- ColorBlend.cs
- TracingConnection.cs
- SchemaImporterExtensionsSection.cs
- TreeViewImageGenerator.cs
- DBCommand.cs
- SdlChannelSink.cs
- RoleGroupCollection.cs
- AvtEvent.cs
- FontFamily.cs
- XmlILAnnotation.cs
- SmiRequestExecutor.cs
- StickyNoteAnnotations.cs
- OdbcConnection.cs
- SystemFonts.cs
- TextTrailingWordEllipsis.cs
- CompositeCollectionView.cs
- MobileControlPersister.cs
- RichTextBoxConstants.cs
- DocumentEventArgs.cs
- ScaleTransform3D.cs
- DrawingContextWalker.cs
- util.cs
- XmlAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- XmlSchemaComplexType.cs
- ColorIndependentAnimationStorage.cs
- MonthCalendar.cs
- CharacterHit.cs
- PersonalizationAdministration.cs
- DeferredRunTextReference.cs
- HelloOperation11AsyncResult.cs
- CodeExporter.cs
- Roles.cs
- ObjectToken.cs
- Vector3DAnimationBase.cs
- Odbc32.cs
- SafeFileMapViewHandle.cs
- DataKey.cs
- ConfigUtil.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- CacheModeConverter.cs
- ThreadWorkerController.cs
- RefreshPropertiesAttribute.cs
- ErrorStyle.cs
- CookieParameter.cs
- DataGridViewCellCollection.cs
- ColumnCollection.cs
- XPathScanner.cs
- XmlILStorageConverter.cs
- GatewayIPAddressInformationCollection.cs
- ProxyManager.cs
- ImpersonateTokenRef.cs
- ValidatingReaderNodeData.cs
- DataGrid.cs
- EntityReference.cs
- MdiWindowListStrip.cs
- DataServiceContext.cs
- ParameterReplacerVisitor.cs
- WebControlParameterProxy.cs
- Decimal.cs
- ObjectMemberMapping.cs
- LOSFormatter.cs
- IPAddressCollection.cs
- WindowsScrollBarBits.cs
- EditingCommands.cs
- PathGradientBrush.cs
- CompositeActivityMarkupSerializer.cs
- FileLevelControlBuilderAttribute.cs
- DataMemberConverter.cs
- DbParameterCollectionHelper.cs
- FSWPathEditor.cs
- ManagedIStream.cs
- BaseTemplateParser.cs
- XmlTextReaderImpl.cs
- WebPartCancelEventArgs.cs
- RoleManagerModule.cs
- CachingHintValidation.cs
- TreeBuilderBamlTranslator.cs
- MyContact.cs
- Regex.cs
- QilLiteral.cs
- MouseActionValueSerializer.cs
- InfoCardSymmetricCrypto.cs
- ListBoxChrome.cs
- validationstate.cs
- TreeNodeCollection.cs
- HttpNamespaceReservationInstallComponent.cs
- ZipIORawDataFileBlock.cs