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
- RangeValuePatternIdentifiers.cs
- ResponseBodyWriter.cs
- UnknownBitmapDecoder.cs
- RelationshipSet.cs
- WindowsAuthenticationModule.cs
- SafeFileMappingHandle.cs
- GeneralTransform3D.cs
- PenThread.cs
- PersistencePipeline.cs
- ExtentCqlBlock.cs
- WorkflowInstanceProxy.cs
- AutomationElement.cs
- unsafenativemethodstextservices.cs
- SortKey.cs
- OpenFileDialog.cs
- SecurityTokenSerializer.cs
- SecurityPolicySection.cs
- XamlFxTrace.cs
- URLEditor.cs
- ReadOnlyDataSourceView.cs
- ValueExpressions.cs
- PreservationFileWriter.cs
- NamedPipeAppDomainProtocolHandler.cs
- WebPartConnectionsCancelEventArgs.cs
- DeferredTextReference.cs
- ResourcePool.cs
- ViewManager.cs
- EdmConstants.cs
- ContentPropertyAttribute.cs
- BaseParagraph.cs
- BindStream.cs
- RequestNavigateEventArgs.cs
- MulticastOption.cs
- XPathNodeInfoAtom.cs
- ClientProxyGenerator.cs
- TraceHandler.cs
- HttpListenerContext.cs
- SqlTypeSystemProvider.cs
- DataServiceProcessingPipeline.cs
- UrlEncodedParameterWriter.cs
- RtfControlWordInfo.cs
- FreeIndexList.cs
- DataViewManagerListItemTypeDescriptor.cs
- DragDeltaEventArgs.cs
- Enum.cs
- OleDbDataReader.cs
- BindingContext.cs
- XmlWriterTraceListener.cs
- RelatedCurrencyManager.cs
- BuildProvidersCompiler.cs
- ProgressBar.cs
- DocumentSchemaValidator.cs
- ThicknessAnimationBase.cs
- HttpAsyncResult.cs
- DirectoryInfo.cs
- ObjRef.cs
- MessageDesigner.cs
- SingleStorage.cs
- XmlSchemaImport.cs
- BoundPropertyEntry.cs
- ConstraintConverter.cs
- DllNotFoundException.cs
- ChameleonKey.cs
- TemplateBindingExtension.cs
- WriteLine.cs
- FocusWithinProperty.cs
- ConfigurationException.cs
- TrimSurroundingWhitespaceAttribute.cs
- SudsParser.cs
- TypeSystem.cs
- AsymmetricCryptoHandle.cs
- TailPinnedEventArgs.cs
- AssemblyNameProxy.cs
- ExtendedProtectionPolicyTypeConverter.cs
- RouteParser.cs
- FieldNameLookup.cs
- DataControlImageButton.cs
- ListManagerBindingsCollection.cs
- Focus.cs
- AlternateView.cs
- FixedElement.cs
- SQLMoney.cs
- SecUtil.cs
- EditorPartDesigner.cs
- Menu.cs
- httpapplicationstate.cs
- EventItfInfo.cs
- XmlDataImplementation.cs
- CardSpaceException.cs
- DropShadowBitmapEffect.cs
- ApplyTemplatesAction.cs
- CqlBlock.cs
- ModelUIElement3D.cs
- GetPageNumberCompletedEventArgs.cs
- _SSPIWrapper.cs
- EntityDataSource.cs
- ZoneLinkButton.cs
- DictionaryManager.cs
- invalidudtexception.cs
- Transaction.cs