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
- ObjectPersistData.cs
- TextAdaptor.cs
- StreamProxy.cs
- SearchExpression.cs
- TextPointer.cs
- VariableDesigner.xaml.cs
- CollectionViewSource.cs
- XmlReaderSettings.cs
- UnsignedPublishLicense.cs
- XmlTextReaderImplHelpers.cs
- HttpHandlersInstallComponent.cs
- NameObjectCollectionBase.cs
- PixelShader.cs
- X509SecurityTokenParameters.cs
- ConfigurationElement.cs
- SecurityKeyIdentifierClause.cs
- PropertyGridView.cs
- ClonableStack.cs
- WpfKnownMember.cs
- ActivityAction.cs
- PagedDataSource.cs
- LeaseManager.cs
- SimpleApplicationHost.cs
- InvokeProviderWrapper.cs
- XmlRawWriter.cs
- DisplayNameAttribute.cs
- SystemIPv6InterfaceProperties.cs
- CodeCompileUnit.cs
- VisualBasic.cs
- CollectionContainer.cs
- PropertyGridView.cs
- FontSourceCollection.cs
- StreamingContext.cs
- ProviderConnectionPoint.cs
- AxParameterData.cs
- XmlElement.cs
- Roles.cs
- PropertyDescriptor.cs
- MonitorWrapper.cs
- Rfc4050KeyFormatter.cs
- MemoryRecordBuffer.cs
- GPPOINTF.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- FacetDescriptionElement.cs
- DataGridViewCellCancelEventArgs.cs
- DataGridColumnEventArgs.cs
- BitStream.cs
- DependencyProperty.cs
- RenderData.cs
- SecurityState.cs
- RunInstallerAttribute.cs
- MimeFormReflector.cs
- AmbientValueAttribute.cs
- NameValueConfigurationCollection.cs
- BlobPersonalizationState.cs
- StoreContentChangedEventArgs.cs
- CompiledQueryCacheKey.cs
- SchemaSetCompiler.cs
- httpapplicationstate.cs
- TextContainerHelper.cs
- StatusInfoItem.cs
- SchemaNotation.cs
- LockCookie.cs
- BinaryObjectInfo.cs
- Crypto.cs
- SafePEFileHandle.cs
- SectionInput.cs
- BitmapSourceSafeMILHandle.cs
- PrivilegeNotHeldException.cs
- SymbolTable.cs
- DockPanel.cs
- HttpErrorTraceRecord.cs
- FreezableDefaultValueFactory.cs
- WindowsContainer.cs
- CodeAttributeDeclaration.cs
- DataMisalignedException.cs
- _ProxyRegBlob.cs
- DataGridHeaderBorder.cs
- ExceptionTrace.cs
- EncoderNLS.cs
- WebPartDisplayModeCollection.cs
- AnnotationDocumentPaginator.cs
- PhoneCallDesigner.cs
- SingleAnimationUsingKeyFrames.cs
- ProxyGenerationError.cs
- XmlSigningNodeWriter.cs
- OrderedDictionary.cs
- PointHitTestParameters.cs
- WebPartConnectionsCancelVerb.cs
- CompressionTracing.cs
- EntityDataSourceDataSelection.cs
- SingleKeyFrameCollection.cs
- FontUnitConverter.cs
- TextEditorTables.cs
- SerializationObjectManager.cs
- RoutedUICommand.cs
- NameValueFileSectionHandler.cs
- ReplyChannelAcceptor.cs
- DesignRelation.cs
- AutoGeneratedField.cs