Code:
                         / DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
    ///  
    /// Provides data for the   event. 
    ///   
    [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;
 
        /// 
        /// Initializes a new instance of the   class.  
        ///   
        public PowerModeChangedEventArgs(PowerModes mode) {
            this.mode = mode; 
        }
        /// 
        ///    Gets the power mode.  
        ///  
        public PowerModes Mode { 
            get { 
                return mode;
            } 
        }
    }
}
 
                        
                        
                        
                        
                    Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipIOExtraFieldZip64Element.cs
 - Grant.cs
 - InputBindingCollection.cs
 - XmlSchemaComplexContentRestriction.cs
 - QueryGenerator.cs
 - GridToolTip.cs
 - XmlSchemaSimpleContentRestriction.cs
 - QilStrConcat.cs
 - TextSimpleMarkerProperties.cs
 - DbConnectionStringBuilder.cs
 - PrimitiveList.cs
 - ClusterSafeNativeMethods.cs
 - NativeMethods.cs
 - AccessViolationException.cs
 - XPathParser.cs
 - SymbolTable.cs
 - ParameterDataSourceExpression.cs
 - TraceContext.cs
 - RuntimeIdentifierPropertyAttribute.cs
 - SecurityDocument.cs
 - XMLSchema.cs
 - GradientBrush.cs
 - SafeProcessHandle.cs
 - PackageFilter.cs
 - CodeStatementCollection.cs
 - _HelperAsyncResults.cs
 - TextBox.cs
 - QueuePathEditor.cs
 - PointCollection.cs
 - Lasso.cs
 - HostedHttpContext.cs
 - PromptBuilder.cs
 - ResourcesBuildProvider.cs
 - EpmAttributeNameBuilder.cs
 - DropSource.cs
 - _NetworkingPerfCounters.cs
 - RemotingException.cs
 - XmlChoiceIdentifierAttribute.cs
 - InternalControlCollection.cs
 - FilterElement.cs
 - Image.cs
 - OleDbReferenceCollection.cs
 - RoleManagerModule.cs
 - HScrollProperties.cs
 - SystemSounds.cs
 - HGlobalSafeHandle.cs
 - DataReceivedEventArgs.cs
 - SQLBytesStorage.cs
 - OdbcConnectionString.cs
 - PropertyChangedEventManager.cs
 - XmlSchemaObjectCollection.cs
 - IteratorFilter.cs
 - OdbcHandle.cs
 - AccessorTable.cs
 - ListViewTableRow.cs
 - Compiler.cs
 - VirtualPathProvider.cs
 - EntityDataSourceEntityTypeFilterConverter.cs
 - MarshalByValueComponent.cs
 - FontInfo.cs
 - ManualWorkflowSchedulerService.cs
 - CommonBehaviorsSection.cs
 - TreeIterator.cs
 - FaultConverter.cs
 - CipherData.cs
 - DataControlField.cs
 - ChangePasswordAutoFormat.cs
 - MatrixKeyFrameCollection.cs
 - CodeIdentifiers.cs
 - ZipIOCentralDirectoryDigitalSignature.cs
 - MaskPropertyEditor.cs
 - AuthenticationConfig.cs
 - DataSourceCacheDurationConverter.cs
 - CryptoConfig.cs
 - ObjectHelper.cs
 - ApplicationId.cs
 - WebServiceTypeData.cs
 - RenderCapability.cs
 - DoubleConverter.cs
 - StreamGeometryContext.cs
 - MergablePropertyAttribute.cs
 - OleDbInfoMessageEvent.cs
 - SynchronizedPool.cs
 - UnaryExpression.cs
 - Completion.cs
 - ReflectTypeDescriptionProvider.cs
 - ClipboardData.cs
 - FormsAuthenticationModule.cs
 - MimeBasePart.cs
 - XPathAxisIterator.cs
 - SchemaObjectWriter.cs
 - PartialCachingAttribute.cs
 - BufferModeSettings.cs
 - CatalogZone.cs
 - TextProperties.cs
 - RawTextInputReport.cs
 - HttpMethodAttribute.cs
 - AttributeAction.cs
 - ComponentCodeDomSerializer.cs
 - PropertyTabChangedEvent.cs