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
- SolidColorBrush.cs
- ChangeNode.cs
- DataIdProcessor.cs
- DataMemberFieldConverter.cs
- ChannelManagerHelpers.cs
- SoapClientProtocol.cs
- XPathArrayIterator.cs
- AnnotationDocumentPaginator.cs
- ItemList.cs
- unitconverter.cs
- HttpResponse.cs
- Literal.cs
- DbDataAdapter.cs
- HijriCalendar.cs
- DataMemberListEditor.cs
- TypeDelegator.cs
- ReliabilityContractAttribute.cs
- SecurityPermission.cs
- FlowDocumentReaderAutomationPeer.cs
- Propagator.cs
- regiisutil.cs
- DropShadowBitmapEffect.cs
- Html32TextWriter.cs
- FrameworkElementAutomationPeer.cs
- ASCIIEncoding.cs
- Peer.cs
- VectorAnimationBase.cs
- TraceHandler.cs
- HwndTarget.cs
- StronglyTypedResourceBuilder.cs
- XmlDocument.cs
- SrgsNameValueTag.cs
- VirtualPath.cs
- QilReference.cs
- HMACMD5.cs
- LinqDataSourceValidationException.cs
- Variable.cs
- DataFieldConverter.cs
- EntityDataSourceWizardForm.cs
- FixedSOMElement.cs
- ServiceNameElement.cs
- HtmlInputPassword.cs
- UriExt.cs
- SQLConvert.cs
- FixedElement.cs
- MachineKeySection.cs
- SqlDataRecord.cs
- ConversionHelper.cs
- DrawingAttributesDefaultValueFactory.cs
- NativeBuffer.cs
- XmlTextWriter.cs
- XmlEntityReference.cs
- QilStrConcat.cs
- RenamedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- SamlSubject.cs
- FileNotFoundException.cs
- HttpGetProtocolImporter.cs
- FilterableData.cs
- OleAutBinder.cs
- SecurityDocument.cs
- SiteMapSection.cs
- InvalidAsynchronousStateException.cs
- ExpressionHelper.cs
- LinqDataSourceSelectEventArgs.cs
- PackageRelationshipSelector.cs
- HttpUnhandledOperationInvoker.cs
- SuppressMergeCheckAttribute.cs
- FontInfo.cs
- SafeNativeMethods.cs
- SqlProviderManifest.cs
- ErrorFormatterPage.cs
- PartialToken.cs
- HyperLinkField.cs
- MdImport.cs
- XpsDocumentEvent.cs
- BaseValidatorDesigner.cs
- DataContractJsonSerializer.cs
- EmbeddedMailObjectsCollection.cs
- httpapplicationstate.cs
- BaseTemplateParser.cs
- NetCodeGroup.cs
- XmlReflectionImporter.cs
- InputBinder.cs
- ExpressionEditorAttribute.cs
- MenuItemCollectionEditor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- InteropBitmapSource.cs
- RegexCharClass.cs
- ILGenerator.cs
- WebRequestModulesSection.cs
- Vector3DConverter.cs
- RoutedEventConverter.cs
- SimpleBitVector32.cs
- MaterialGroup.cs
- QueryAccessibilityHelpEvent.cs
- LambdaExpression.cs
- KeyInstance.cs
- ExecutionScope.cs
- GridEntryCollection.cs