Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlAnyAttributeAttribute.cs
- SynchronizingStream.cs
- GeometryHitTestResult.cs
- Rotation3DAnimationUsingKeyFrames.cs
- AssemblyInfo.cs
- XPathExpr.cs
- NumericExpr.cs
- DnsPermission.cs
- PolicyValidator.cs
- GCHandleCookieTable.cs
- MessageContractAttribute.cs
- ApplyHostConfigurationBehavior.cs
- MimeBasePart.cs
- DependencyObjectProvider.cs
- ProjectionPathBuilder.cs
- cookiecontainer.cs
- ListBindingHelper.cs
- IFlowDocumentViewer.cs
- EntityCommand.cs
- Brushes.cs
- XmlSchemaType.cs
- HotCommands.cs
- DataList.cs
- DnsEndPoint.cs
- RegexCompiler.cs
- GridViewRowCollection.cs
- MbpInfo.cs
- ConversionContext.cs
- NullableConverter.cs
- PatternMatcher.cs
- IndependentAnimationStorage.cs
- SequentialUshortCollection.cs
- Line.cs
- SchemaElement.cs
- WindowsPen.cs
- DBCSCodePageEncoding.cs
- SystemDiagnosticsSection.cs
- OdbcEnvironment.cs
- LinkUtilities.cs
- SqlClientPermission.cs
- StrongNamePublicKeyBlob.cs
- NodeLabelEditEvent.cs
- NetworkAddressChange.cs
- ComponentResourceKey.cs
- TrustLevel.cs
- MetadataFile.cs
- CapabilitiesSection.cs
- IconHelper.cs
- WaitHandle.cs
- CodeMemberMethod.cs
- ReturnType.cs
- TransportManager.cs
- WebBrowsableAttribute.cs
- Size3D.cs
- HMACSHA256.cs
- IndexedDataBuffer.cs
- HttpRawResponse.cs
- ThreadPool.cs
- ReadOnlyMetadataCollection.cs
- BaseParser.cs
- Debug.cs
- SqlOuterApplyReducer.cs
- filewebrequest.cs
- XhtmlBasicControlAdapter.cs
- Context.cs
- ResourceManagerWrapper.cs
- SelectionRangeConverter.cs
- ActivityXamlServices.cs
- Empty.cs
- SchemaSetCompiler.cs
- InvariantComparer.cs
- StrokeNodeData.cs
- PlatformNotSupportedException.cs
- XmlSchemaCollection.cs
- TypeToStringValueConverter.cs
- InfoCard.cs
- XmlObjectSerializer.cs
- SettingsPropertyWrongTypeException.cs
- DataGridTablesFactory.cs
- CookieParameter.cs
- DocumentGridContextMenu.cs
- ItemContainerGenerator.cs
- RegistryKey.cs
- X509CertificateStore.cs
- StreamMarshaler.cs
- SqlOuterApplyReducer.cs
- ImportOptions.cs
- CodeSnippetCompileUnit.cs
- StringResourceManager.cs
- Evaluator.cs
- SynchronizedInputPattern.cs
- PassportIdentity.cs
- WorkflowDefinitionContext.cs
- TableLayoutColumnStyleCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- CheckBox.cs
- ProxyGenerationError.cs
- DefaultSettingsSection.cs
- DataGridItem.cs
- ZipIOLocalFileBlock.cs