Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UserControlFileEditor.cs
- XPathMultyIterator.cs
- DataColumnChangeEvent.cs
- UIntPtr.cs
- DocumentXmlWriter.cs
- AssemblyResourceLoader.cs
- TraceContextRecord.cs
- DataFieldConverter.cs
- RequiredAttributeAttribute.cs
- VersionUtil.cs
- EncoderReplacementFallback.cs
- TrackingStringDictionary.cs
- SeekStoryboard.cs
- PersonalizableAttribute.cs
- OperationAbortedException.cs
- XPathDescendantIterator.cs
- CompatibleComparer.cs
- EndpointConfigContainer.cs
- OleDbWrapper.cs
- TableLayoutStyleCollection.cs
- ValidatorCollection.cs
- EventWaitHandleSecurity.cs
- Metadata.cs
- ValidatedControlConverter.cs
- HttpsHostedTransportConfiguration.cs
- StorageEntityContainerMapping.cs
- XmlUtf8RawTextWriter.cs
- WsatTransactionInfo.cs
- CachedFontFace.cs
- HttpListener.cs
- FillErrorEventArgs.cs
- ObjectQueryProvider.cs
- UnionExpr.cs
- OleDbEnumerator.cs
- ColorTranslator.cs
- CompositeControl.cs
- EditorZone.cs
- DataSourceDescriptorCollection.cs
- GeneratedCodeAttribute.cs
- AccessViolationException.cs
- CryptoStream.cs
- WbmpConverter.cs
- InvalidEnumArgumentException.cs
- XmlException.cs
- MemoryMappedFileSecurity.cs
- Transform.cs
- FixedSOMLineCollection.cs
- Attributes.cs
- XsltLibrary.cs
- TemplateColumn.cs
- ProvidersHelper.cs
- DbDataAdapter.cs
- AnnotationService.cs
- HttpContext.cs
- EnumConverter.cs
- Token.cs
- UrlAuthorizationModule.cs
- SimpleParser.cs
- tibetanshape.cs
- ShutDownListener.cs
- DispatcherHookEventArgs.cs
- ImageButton.cs
- XPathEmptyIterator.cs
- WebBrowserHelper.cs
- CfgSemanticTag.cs
- FlowDocumentReader.cs
- MasterPageBuildProvider.cs
- ObjectItemLoadingSessionData.cs
- RegexCaptureCollection.cs
- TreeView.cs
- ProcessHostServerConfig.cs
- PathSegment.cs
- StylusButton.cs
- SynchronousReceiveBehavior.cs
- LookupTables.cs
- InvalidEnumArgumentException.cs
- HttpProfileGroupBase.cs
- TypeNameConverter.cs
- PriorityRange.cs
- RelationshipWrapper.cs
- Parser.cs
- OdbcConnectionHandle.cs
- SqlUdtInfo.cs
- propertytag.cs
- SHA384.cs
- StorageScalarPropertyMapping.cs
- StructuredType.cs
- InvalidContentTypeException.cs
- GacUtil.cs
- WebBrowserProgressChangedEventHandler.cs
- ReturnType.cs
- MatchingStyle.cs
- ReadOnlyMetadataCollection.cs
- SequentialWorkflowRootDesigner.cs
- AutoScrollExpandMessageFilter.cs
- XmlSchemaSimpleType.cs
- ProgressBarRenderer.cs
- ToolBarButton.cs
- Int16.cs
- DbDataReader.cs