Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Vector3DValueSerializer.cs
- KernelTypeValidation.cs
- ErrorHandler.cs
- ContentControl.cs
- AuthenticationModuleElement.cs
- DispatchOperationRuntime.cs
- AxHost.cs
- TextWriterEngine.cs
- CalloutQueueItem.cs
- InheritedPropertyChangedEventArgs.cs
- WindowsAuthenticationEventArgs.cs
- FaultContractAttribute.cs
- DesignParameter.cs
- StrongNameUtility.cs
- EditorAttribute.cs
- SelectedGridItemChangedEvent.cs
- XmlSerializableServices.cs
- COM2ExtendedUITypeEditor.cs
- Wizard.cs
- GeometryConverter.cs
- RequestNavigateEventArgs.cs
- XComponentModel.cs
- WinEventTracker.cs
- PagesSection.cs
- ConfigurationValidatorBase.cs
- ToolBarPanel.cs
- DbProviderConfigurationHandler.cs
- RangeBase.cs
- RequestCache.cs
- NativeMethods.cs
- CultureInfoConverter.cs
- FilteredAttributeCollection.cs
- ObjectDataSourceEventArgs.cs
- AddressUtility.cs
- QilStrConcatenator.cs
- ValidationSummary.cs
- FixedSOMLineRanges.cs
- AstTree.cs
- QilInvoke.cs
- wmiprovider.cs
- AuthenticationService.cs
- UnrecognizedAssertionsBindingElement.cs
- Semaphore.cs
- CapabilitiesSection.cs
- OleStrCAMarshaler.cs
- Single.cs
- Section.cs
- OracleRowUpdatingEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- SecureEnvironment.cs
- DataContext.cs
- BufferedWebEventProvider.cs
- Transform3DCollection.cs
- DefaultEventAttribute.cs
- XmlConvert.cs
- base64Transforms.cs
- RegexWorker.cs
- Oid.cs
- SqlDataSourceQueryConverter.cs
- ObjectConverter.cs
- AddInProcess.cs
- Events.cs
- ChannelManagerService.cs
- RestClientProxyHandler.cs
- Assert.cs
- TitleStyle.cs
- SignedPkcs7.cs
- PerspectiveCamera.cs
- NavigationFailedEventArgs.cs
- HttpApplication.cs
- IsolatedStorage.cs
- ObjectDataSourceStatusEventArgs.cs
- ProtocolsSection.cs
- ProxyWebPartConnectionCollection.cs
- CompressedStack.cs
- AxisAngleRotation3D.cs
- DPTypeDescriptorContext.cs
- PngBitmapDecoder.cs
- IssuedTokenServiceElement.cs
- Pair.cs
- WebControl.cs
- ProgressBarAutomationPeer.cs
- MimeParameters.cs
- GetMemberBinder.cs
- NonVisualControlAttribute.cs
- SQLByte.cs
- Accessible.cs
- WorkflowMarkupSerializationManager.cs
- PrivilegeNotHeldException.cs
- InheritablePropertyChangeInfo.cs
- EmptyQuery.cs
- XmlUtilWriter.cs
- FrameAutomationPeer.cs
- EventLogPermissionEntryCollection.cs
- DataError.cs
- smtpconnection.cs
- BuildProvidersCompiler.cs
- Update.cs
- RemotingConfigParser.cs
- VBIdentifierNameEditor.cs