Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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;
///
/// Provides data for the event.
///
[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;
///
/// Initializes a new instance of the class.
///
public PowerModeChangedEventArgs(PowerModes mode) {
this.mode = mode;
}
///
/// Gets the power mode.
///
public PowerModes Mode {
get {
return mode;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace Microsoft.Win32 {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[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;
///
/// Initializes a new instance of the class.
///
public PowerModeChangedEventArgs(PowerModes mode) {
this.mode = mode;
}
///
/// Gets the power mode.
///
public PowerModes Mode {
get {
return mode;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLChars.cs
- ResourceExpressionBuilder.cs
- GeneratedCodeAttribute.cs
- SatelliteContractVersionAttribute.cs
- RectangleHotSpot.cs
- WsatEtwTraceListener.cs
- HttpTransportBindingElement.cs
- RelOps.cs
- AsyncCompletedEventArgs.cs
- SourceCollection.cs
- DesignerInterfaces.cs
- MissingMethodException.cs
- StylusButtonCollection.cs
- LZCodec.cs
- TextEditorTables.cs
- X509Certificate2.cs
- safesecurityhelperavalon.cs
- handlecollector.cs
- NameValuePermission.cs
- WinFormsUtils.cs
- Activation.cs
- TargetParameterCountException.cs
- AuthenticationModulesSection.cs
- SevenBitStream.cs
- ReadOnlyMetadataCollection.cs
- SafeNativeMethods.cs
- WriterOutput.cs
- ReadonlyMessageFilter.cs
- AutomationPatternInfo.cs
- SuppressIldasmAttribute.cs
- Vertex.cs
- WorkflowInstanceRecord.cs
- DispatchWrapper.cs
- AsyncResult.cs
- HttpGetProtocolReflector.cs
- HtmlProps.cs
- HttpInputStream.cs
- ProviderManager.cs
- QueryableDataSourceEditData.cs
- SQLBoolean.cs
- StateMachine.cs
- validationstate.cs
- WebSysDisplayNameAttribute.cs
- TextRangeAdaptor.cs
- SafeReadContext.cs
- SQLInt16.cs
- RoutedEventValueSerializer.cs
- SqlConnectionHelper.cs
- LabelDesigner.cs
- WindowsFormsSectionHandler.cs
- LogicalExpr.cs
- ImportContext.cs
- SqlDataSourceView.cs
- LayoutDump.cs
- Selection.cs
- PropertyBuilder.cs
- SiteOfOriginPart.cs
- AssemblyInfo.cs
- Sql8ExpressionRewriter.cs
- UIElement3DAutomationPeer.cs
- KeyInterop.cs
- MethodSignatureGenerator.cs
- AlgoModule.cs
- PeerNameRegistration.cs
- MetadataException.cs
- PolicyAssertionCollection.cs
- AddInController.cs
- StringArrayConverter.cs
- DatasetMethodGenerator.cs
- UrlPath.cs
- ListViewHitTestInfo.cs
- GestureRecognizer.cs
- EndOfStreamException.cs
- SchemaNotation.cs
- ReferenceEqualityComparer.cs
- CheckBox.cs
- BuildProviderCollection.cs
- QuotedPrintableStream.cs
- sqlpipe.cs
- TCPClient.cs
- QilTypeChecker.cs
- AsymmetricKeyExchangeDeformatter.cs
- WebEventCodes.cs
- Font.cs
- QualificationDataAttribute.cs
- AutoResizedEvent.cs
- DiscoveryClientBindingElement.cs
- DefaultPerformanceCounters.cs
- XmlQueryRuntime.cs
- Command.cs
- OleDbMetaDataFactory.cs
- RsaSecurityKey.cs
- EdmFunctions.cs
- TargetConverter.cs
- IdentityManager.cs
- Point3D.cs
- StringUtil.cs
- Console.cs
- EnumMember.cs
- ProfileSettingsCollection.cs