Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / Microsoft / Win32 / PowerModeChangedEventArgs.cs / 1305376 / 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
- ObjectNavigationPropertyMapping.cs
- SymmetricSecurityProtocol.cs
- HttpServerVarsCollection.cs
- ClientBuildManager.cs
- Parameter.cs
- DataGridViewRowHeaderCell.cs
- DesignSurfaceManager.cs
- MailDefinition.cs
- WorkflowInstanceTerminatedRecord.cs
- UIElement.cs
- PropertyEntry.cs
- ScrollableControl.cs
- PagePropertiesChangingEventArgs.cs
- ErrorRuntimeConfig.cs
- ServiceObjectContainer.cs
- ChangeBlockUndoRecord.cs
- FixedPageProcessor.cs
- SimpleHandlerFactory.cs
- unsafenativemethodsother.cs
- IxmlLineInfo.cs
- DatePickerTextBox.cs
- TextBox.cs
- SessionStateContainer.cs
- PipelineModuleStepContainer.cs
- JournalNavigationScope.cs
- TextSelectionHelper.cs
- MSAANativeProvider.cs
- TextTreeText.cs
- WebScriptEndpoint.cs
- RecognizedWordUnit.cs
- VisualStyleElement.cs
- OpenTypeCommon.cs
- ArcSegment.cs
- ParameterReplacerVisitor.cs
- FrugalList.cs
- HwndAppCommandInputProvider.cs
- ResourceReader.cs
- ImageAttributes.cs
- CanonicalXml.cs
- XslUrlEditor.cs
- ViewStateException.cs
- DependencyObjectPropertyDescriptor.cs
- TextOptionsInternal.cs
- assemblycache.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CompiledAction.cs
- PreviewKeyDownEventArgs.cs
- TagPrefixAttribute.cs
- HttpPostLocalhostServerProtocol.cs
- PrintDialog.cs
- WebPartConnectionsDisconnectVerb.cs
- CuspData.cs
- SortAction.cs
- AnnotationAdorner.cs
- CodeAttributeArgumentCollection.cs
- TimeManager.cs
- ProfileElement.cs
- RequestQueue.cs
- ImplicitInputBrush.cs
- TextElementAutomationPeer.cs
- SoapAttributeOverrides.cs
- MenuItem.cs
- BindingFormattingDialog.cs
- SQLDecimalStorage.cs
- AmbientEnvironment.cs
- DataControlField.cs
- OSFeature.cs
- SetUserPreferenceRequest.cs
- StringBuilder.cs
- MeasureData.cs
- QueueProcessor.cs
- CommentAction.cs
- _WinHttpWebProxyDataBuilder.cs
- AttributeCollection.cs
- PropertyGridEditorPart.cs
- EventLogPermissionEntry.cs
- PrinterSettings.cs
- FunctionNode.cs
- ObjectDataSource.cs
- Number.cs
- BitmapSourceSafeMILHandle.cs
- DataSourceCache.cs
- PropertyRecord.cs
- CodeNamespace.cs
- WebPartCloseVerb.cs
- XmlSchemaImport.cs
- DataGridViewButtonCell.cs
- AppDomainManager.cs
- SafeArrayRankMismatchException.cs
- IdSpace.cs
- TdsParameterSetter.cs
- XsltContext.cs
- DataIdProcessor.cs
- NetNamedPipeSecurity.cs
- SynchronizedInputAdaptor.cs
- UIElement3DAutomationPeer.cs
- Crc32Helper.cs
- ResponseBodyWriter.cs
- HitTestWithPointDrawingContextWalker.cs
- OleDbSchemaGuid.cs