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
- Size3DValueSerializer.cs
- ApplicationInterop.cs
- TraceContext.cs
- AmbientEnvironment.cs
- ContactManager.cs
- MsmqVerifier.cs
- SafeUserTokenHandle.cs
- RegistryPermission.cs
- SchemaContext.cs
- CodeGenerator.cs
- LinqDataSourceEditData.cs
- FileChangesMonitor.cs
- SqlCacheDependencyDatabase.cs
- ProgressBar.cs
- MessageBox.cs
- PathGeometry.cs
- DbException.cs
- LambdaCompiler.Binary.cs
- SecureUICommand.cs
- StreamMarshaler.cs
- OrderedDictionaryStateHelper.cs
- SupportsEventValidationAttribute.cs
- WebServiceParameterData.cs
- QueryableDataSource.cs
- SizeLimitedCache.cs
- QueryStringHandler.cs
- StrokeRenderer.cs
- PageBreakRecord.cs
- OleDbParameter.cs
- UserControl.cs
- DoubleCollection.cs
- TraceContextRecord.cs
- EmulateRecognizeCompletedEventArgs.cs
- Normalization.cs
- InterleavedZipPartStream.cs
- ServiceModelReg.cs
- ExpressionConverter.cs
- MethodCallTranslator.cs
- _BufferOffsetSize.cs
- DataPagerCommandEventArgs.cs
- AutomationPropertyInfo.cs
- SqlDataSourceCommandParser.cs
- Win32.cs
- DictionaryBase.cs
- IncomingWebResponseContext.cs
- TokenBasedSet.cs
- WebPartEditorOkVerb.cs
- MbpInfo.cs
- TextCharacters.cs
- FieldBuilder.cs
- CorePropertiesFilter.cs
- Transform3DGroup.cs
- PointIndependentAnimationStorage.cs
- ResXBuildProvider.cs
- PopOutPanel.cs
- TextEncodedRawTextWriter.cs
- FixedTextSelectionProcessor.cs
- InkCollectionBehavior.cs
- TextRangeEditLists.cs
- SubMenuStyle.cs
- AnimatedTypeHelpers.cs
- MenuEventArgs.cs
- NonPrimarySelectionGlyph.cs
- TdsRecordBufferSetter.cs
- CustomValidator.cs
- ShapeTypeface.cs
- HttpRuntimeSection.cs
- CancellationHandlerDesigner.cs
- SecurityPolicyVersion.cs
- RNGCryptoServiceProvider.cs
- SimpleBitVector32.cs
- DataSourceUtil.cs
- RegexGroupCollection.cs
- AutomationElementCollection.cs
- InputLanguageSource.cs
- HtmlTitle.cs
- XmlWrappingReader.cs
- StructuredTypeInfo.cs
- ClientScriptManagerWrapper.cs
- SystemUdpStatistics.cs
- ExcludePathInfo.cs
- NavigateUrlConverter.cs
- ItemCollection.cs
- Animatable.cs
- TableParagraph.cs
- DTCTransactionManager.cs
- EmbeddedMailObject.cs
- DefaultParameterValueAttribute.cs
- DataRelationCollection.cs
- SmiEventSink_Default.cs
- PtsContext.cs
- SvcFileManager.cs
- ObjectStorage.cs
- FlowSwitchDesigner.xaml.cs
- Repeater.cs
- OletxEnlistment.cs
- UxThemeWrapper.cs
- EpmContentDeSerializer.cs
- _LocalDataStore.cs
- QuadraticBezierSegment.cs