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
- StringPropertyBuilder.cs
- Stacktrace.cs
- QilCloneVisitor.cs
- Metadata.cs
- TextEmbeddedObject.cs
- XslVisitor.cs
- ContractSearchPattern.cs
- ReaderWriterLockSlim.cs
- HtmlMobileTextWriter.cs
- TextUtf8RawTextWriter.cs
- WindowPatternIdentifiers.cs
- TreeIterator.cs
- DataListCommandEventArgs.cs
- FixedSOMElement.cs
- FontFamilyConverter.cs
- BrowserCapabilitiesFactory.cs
- XmlNullResolver.cs
- IsolatedStorageSecurityState.cs
- NameNode.cs
- InputScope.cs
- EdmProperty.cs
- Registry.cs
- Point3DAnimationUsingKeyFrames.cs
- TemplateBuilder.cs
- designeractionlistschangedeventargs.cs
- NavigationCommands.cs
- WinInetCache.cs
- ProgressChangedEventArgs.cs
- RuleEngine.cs
- CompoundFileReference.cs
- ComplexBindingPropertiesAttribute.cs
- CompensationParticipant.cs
- TypeConverterAttribute.cs
- PartitionResolver.cs
- SourceFilter.cs
- FlowDocument.cs
- InstanceCompleteException.cs
- UiaCoreTypesApi.cs
- XPathAncestorIterator.cs
- WebServiceData.cs
- Imaging.cs
- SqlInternalConnection.cs
- ExtensionSimplifierMarkupObject.cs
- SqlClientWrapperSmiStreamChars.cs
- NativeMethods.cs
- GcSettings.cs
- DocumentPaginator.cs
- GeometryHitTestResult.cs
- NativeMethods.cs
- BindingExpressionUncommonField.cs
- DatePickerDateValidationErrorEventArgs.cs
- UnionExpr.cs
- ToolStripSplitButton.cs
- PackageStore.cs
- CheckBoxField.cs
- GZipDecoder.cs
- SelectedCellsChangedEventArgs.cs
- TemplatedWizardStep.cs
- AudioFormatConverter.cs
- ColorMatrix.cs
- BinaryObjectInfo.cs
- VirtualDirectoryMapping.cs
- propertyentry.cs
- PrivateFontCollection.cs
- KeyBinding.cs
- Rectangle.cs
- HttpCachePolicyWrapper.cs
- ObjectAnimationUsingKeyFrames.cs
- NetworkAddressChange.cs
- newinstructionaction.cs
- ControlPager.cs
- QilTargetType.cs
- exports.cs
- AllMembershipCondition.cs
- Int16Storage.cs
- XmlSchemaDocumentation.cs
- Button.cs
- PermissionSetEnumerator.cs
- ItemCollectionEditor.cs
- ProcessRequestAsyncResult.cs
- StackOverflowException.cs
- WebEventCodes.cs
- BufferedGraphics.cs
- MSAANativeProvider.cs
- CheckBoxField.cs
- SymLanguageVendor.cs
- XslCompiledTransform.cs
- DrawingCollection.cs
- QueryStringParameter.cs
- QilPatternVisitor.cs
- TextCollapsingProperties.cs
- OdbcException.cs
- XDRSchema.cs
- RequestCache.cs
- SafeCryptContextHandle.cs
- XsltFunctions.cs
- KoreanLunisolarCalendar.cs
- PaperSource.cs
- SchemaElement.cs
- OutputCacheProfileCollection.cs