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
- CustomAttributeBuilder.cs
- DependencyPropertyChangedEventArgs.cs
- XPathExpr.cs
- CollectionDataContract.cs
- PtsPage.cs
- DateTimeFormat.cs
- ModelPerspective.cs
- Win32PrintDialog.cs
- DesignerLabelAdapter.cs
- ValidationPropertyAttribute.cs
- Stream.cs
- FtpWebResponse.cs
- EventMappingSettings.cs
- XmlEnumAttribute.cs
- DispatcherHookEventArgs.cs
- BoolLiteral.cs
- ExpressionHelper.cs
- TerminateDesigner.cs
- GCHandleCookieTable.cs
- HostedElements.cs
- SqlBooleanMismatchVisitor.cs
- EntityTypeEmitter.cs
- WorkflowInlining.cs
- SelectionChangedEventArgs.cs
- COM2IDispatchConverter.cs
- DateTimeSerializationSection.cs
- AddInProcess.cs
- ObjectQuery.cs
- IdentityManager.cs
- TextEffectCollection.cs
- PackagePartCollection.cs
- GridViewColumn.cs
- FunctionParameter.cs
- ThreadExceptionDialog.cs
- DynamicValueConverter.cs
- PaintEvent.cs
- ContainerActivationHelper.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ZipIOExtraFieldElement.cs
- BitmapPalette.cs
- VBIdentifierName.cs
- ValidatorCollection.cs
- CodeArrayCreateExpression.cs
- RowBinding.cs
- SamlAuthorizationDecisionStatement.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ExpandSegment.cs
- XmlSchemaDatatype.cs
- ExpressionEditorAttribute.cs
- _SpnDictionary.cs
- DisplayToken.cs
- HostedTransportConfigurationManager.cs
- BounceEase.cs
- StatusBarItemAutomationPeer.cs
- WebDescriptionAttribute.cs
- PathStreamGeometryContext.cs
- Socket.cs
- SafeRightsManagementSessionHandle.cs
- LookupBindingPropertiesAttribute.cs
- EdmFunction.cs
- XamlParser.cs
- ZoneLinkButton.cs
- DefaultMergeHelper.cs
- PhonemeEventArgs.cs
- ClientConfigPaths.cs
- UniqueTransportManagerRegistration.cs
- DelegateArgumentValue.cs
- BufferedConnection.cs
- Figure.cs
- DetailsViewModeEventArgs.cs
- ModuleElement.cs
- CompiledXpathExpr.cs
- CodeSnippetCompileUnit.cs
- PopupRoot.cs
- HealthMonitoringSectionHelper.cs
- TraceEventCache.cs
- MergeFilterQuery.cs
- ExpressionsCollectionEditor.cs
- StorageConditionPropertyMapping.cs
- OrderPreservingPipeliningSpoolingTask.cs
- MetadataSource.cs
- DependencyObjectType.cs
- XmlMapping.cs
- FusionWrap.cs
- StylusPoint.cs
- DocumentationServerProtocol.cs
- TextTreeFixupNode.cs
- GridViewUpdatedEventArgs.cs
- XPathMultyIterator.cs
- CreateCardRequest.cs
- HostingPreferredMapPath.cs
- OperationDescriptionCollection.cs
- CorrelationScope.cs
- MaterializeFromAtom.cs
- ContentIterators.cs
- ObjectCacheSettings.cs
- DesignerVerb.cs
- WebAdminConfigurationHelper.cs
- AssemblyName.cs
- XPathNavigatorException.cs