Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ImageFormatConverter.cs
- PointHitTestParameters.cs
- ProcessInputEventArgs.cs
- EventDescriptor.cs
- BeginEvent.cs
- BuildResult.cs
- WaitHandleCannotBeOpenedException.cs
- SaveFileDialog.cs
- CompilerGlobalScopeAttribute.cs
- NativeMethods.cs
- WhitespaceRuleLookup.cs
- RecommendedAsConfigurableAttribute.cs
- PerformanceCounterPermissionAttribute.cs
- ConnectionPoint.cs
- Point3D.cs
- AsnEncodedData.cs
- Transform3D.cs
- DocumentViewerHelper.cs
- SqlMethodAttribute.cs
- odbcmetadatafactory.cs
- LinqDataSourceContextData.cs
- FixedDocumentPaginator.cs
- Matrix.cs
- PasswordRecovery.cs
- PerfCounters.cs
- ADMembershipUser.cs
- XmlAttributeAttribute.cs
- CollectionTypeElement.cs
- ShapeTypeface.cs
- WebDescriptionAttribute.cs
- FormsAuthenticationEventArgs.cs
- ReadContentAsBinaryHelper.cs
- Rotation3DAnimationBase.cs
- EdmComplexPropertyAttribute.cs
- TableCellAutomationPeer.cs
- FormatSettings.cs
- SchemaNames.cs
- ElementUtil.cs
- GridLength.cs
- DataGridrowEditEndingEventArgs.cs
- CodeTypeMemberCollection.cs
- TextRunCache.cs
- DuplexChannel.cs
- PrintEvent.cs
- NegotiateStream.cs
- SqlUtils.cs
- BamlStream.cs
- Item.cs
- WebPartTransformer.cs
- XPathNodePointer.cs
- DynamicActivity.cs
- EntityContainerEmitter.cs
- QuaternionValueSerializer.cs
- XPathArrayIterator.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DoWhileDesigner.xaml.cs
- DbProviderFactories.cs
- SafeNativeMethods.cs
- HelpInfo.cs
- GifBitmapEncoder.cs
- TabControlEvent.cs
- RelativeSource.cs
- PropertyEmitterBase.cs
- UrlMapping.cs
- WindowsIdentity.cs
- BaseHashHelper.cs
- NoResizeHandleGlyph.cs
- GenericsInstances.cs
- NeutralResourcesLanguageAttribute.cs
- ExpandoClass.cs
- SelectionHighlightInfo.cs
- TableRowCollection.cs
- ScrollPatternIdentifiers.cs
- FlowchartStart.xaml.cs
- HMACSHA256.cs
- Quad.cs
- StylusPoint.cs
- XpsFixedPageReaderWriter.cs
- Tool.cs
- Oid.cs
- DesignUtil.cs
- WebEventTraceProvider.cs
- RecordConverter.cs
- UnionExpr.cs
- LineProperties.cs
- XmlStreamNodeWriter.cs
- XmlCharacterData.cs
- OrthographicCamera.cs
- _DigestClient.cs
- HideDisabledControlAdapter.cs
- CodeFieldReferenceExpression.cs
- DbDataReader.cs
- TextBlockAutomationPeer.cs
- Int16.cs
- Formatter.cs
- MetadataItem_Static.cs
- DispatcherProcessingDisabled.cs
- EdgeModeValidation.cs
- ThreadExceptionEvent.cs
- Control.cs