Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / Microsoft / Win32 / PowerModeChangedEventArgs.cs / 1 / PowerModeChangedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace Microsoft.Win32 { using System; using System.Diagnostics; using System.Security.Permissions; ////// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] [HostProtection(MayLeakOnAbort = true)] public class PowerModeChangedEventArgs : EventArgs { private readonly PowerModes mode; ///Provides data for the ///event. /// public PowerModeChangedEventArgs(PowerModes mode) { this.mode = mode; } ///Initializes a new instance of the ///class. /// public PowerModes Mode { get { return mode; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the power mode. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace Microsoft.Win32 { using System; using System.Diagnostics; using System.Security.Permissions; ////// [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] [HostProtection(MayLeakOnAbort = true)] public class PowerModeChangedEventArgs : EventArgs { private readonly PowerModes mode; ///Provides data for the ///event. /// public PowerModeChangedEventArgs(PowerModes mode) { this.mode = mode; } ///Initializes a new instance of the ///class. /// public PowerModes Mode { get { return mode; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the power mode. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SessionStateUtil.cs
- InstallHelper.cs
- WebPartConnectionsCancelEventArgs.cs
- serverconfig.cs
- TableCell.cs
- DoubleAnimationUsingKeyFrames.cs
- SqlConnectionPoolGroupProviderInfo.cs
- LabelAutomationPeer.cs
- WorkflowInstance.cs
- DataGridItemAutomationPeer.cs
- StrokeNodeOperations2.cs
- InfoCardKeyedHashAlgorithm.cs
- RestHandler.cs
- Ipv6Element.cs
- ColumnResizeUndoUnit.cs
- XmlNullResolver.cs
- PerspectiveCamera.cs
- TextTreeFixupNode.cs
- ActivityExecutionFilter.cs
- ReaderWriterLock.cs
- MenuItemStyle.cs
- EventSetter.cs
- MouseActionValueSerializer.cs
- PrintControllerWithStatusDialog.cs
- Frame.cs
- Converter.cs
- DrawingContextWalker.cs
- XmlILAnnotation.cs
- WebFormsRootDesigner.cs
- DictionaryTraceRecord.cs
- ExpressionSelection.cs
- PathNode.cs
- NavigationHelper.cs
- ContentDefinition.cs
- _SslState.cs
- XmlArrayAttribute.cs
- AuthenticationServiceManager.cs
- CodeCatchClauseCollection.cs
- NavigationWindow.cs
- OdbcConnectionHandle.cs
- SendKeys.cs
- ValidateNames.cs
- TrustManagerMoreInformation.cs
- KnownBoxes.cs
- HttpListenerException.cs
- ValidationSummary.cs
- CheckableControlBaseAdapter.cs
- dsa.cs
- XmlChildEnumerator.cs
- BuildProvidersCompiler.cs
- Int16.cs
- DataPagerCommandEventArgs.cs
- GC.cs
- Debug.cs
- ClientBuildManager.cs
- FillErrorEventArgs.cs
- BoundingRectTracker.cs
- ActionMessageFilterTable.cs
- invalidudtexception.cs
- NavigationCommands.cs
- SHA1.cs
- TabletDeviceInfo.cs
- CodeStatementCollection.cs
- WebContext.cs
- BoundPropertyEntry.cs
- PageThemeCodeDomTreeGenerator.cs
- httpapplicationstate.cs
- UnknownBitmapDecoder.cs
- GenericUI.cs
- TriState.cs
- CachedTypeface.cs
- GZipDecoder.cs
- View.cs
- Permission.cs
- ELinqQueryState.cs
- TerminateSequenceResponse.cs
- ThreadPoolTaskScheduler.cs
- ErasingStroke.cs
- DiscoveryVersion.cs
- InstallHelper.cs
- DbParameterCollectionHelper.cs
- XPathSelfQuery.cs
- DynamicRenderer.cs
- SchemaEntity.cs
- EntityDataSource.cs
- TdsParser.cs
- ImageConverter.cs
- DBConnectionString.cs
- SQLDateTime.cs
- FontStyleConverter.cs
- InlineCollection.cs
- LoginUtil.cs
- SystemIPv4InterfaceProperties.cs
- SqlVersion.cs
- IListConverters.cs
- COM2PropertyDescriptor.cs
- GridView.cs
- ApplicationServiceManager.cs
- Messages.cs
- SchemaElementDecl.cs