Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / Microsoft / Win32 / TimerElapsedEvenArgs.cs / 1305376 / TimerElapsedEvenArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace Microsoft.Win32 {
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtectionAttribute(MayLeakOnAbort = true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class TimerElapsedEventArgs : EventArgs {
private readonly IntPtr timerId;
///
/// Initializes a new instance of the class.
///
public TimerElapsedEventArgs(IntPtr timerId) {
this.timerId = timerId;
}
///
/// Gets the ID number for the timer.
///
public IntPtr TimerId {
get {
return this.timerId;
}
}
}
}
// 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.Runtime.InteropServices;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtectionAttribute(MayLeakOnAbort = true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class TimerElapsedEventArgs : EventArgs {
private readonly IntPtr timerId;
///
/// Initializes a new instance of the class.
///
public TimerElapsedEventArgs(IntPtr timerId) {
this.timerId = timerId;
}
///
/// Gets the ID number for the timer.
///
public IntPtr TimerId {
get {
return this.timerId;
}
}
}
}
// 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
- DataTableMapping.cs
- ScriptResourceDefinition.cs
- WebBrowser.cs
- TransactedBatchingElement.cs
- Processor.cs
- WindowsComboBox.cs
- ScaleTransform.cs
- FormViewInsertEventArgs.cs
- MouseButtonEventArgs.cs
- PagePropertiesChangingEventArgs.cs
- ClassicBorderDecorator.cs
- PointValueSerializer.cs
- ObjectDataSourceMethodEventArgs.cs
- DbConnectionOptions.cs
- COM2TypeInfoProcessor.cs
- AttachedPropertyMethodSelector.cs
- RC2CryptoServiceProvider.cs
- PartialTrustVisibleAssemblyCollection.cs
- SafeFindHandle.cs
- CommandManager.cs
- RenderCapability.cs
- HtmlTernaryTree.cs
- shaper.cs
- XmlArrayAttribute.cs
- HwndSourceKeyboardInputSite.cs
- BezierSegment.cs
- GeometryGroup.cs
- NonVisualControlAttribute.cs
- XmlSchemaValidator.cs
- AsymmetricSignatureDeformatter.cs
- PromptStyle.cs
- XPathDocumentIterator.cs
- FigureHelper.cs
- SafeCoTaskMem.cs
- FontStretch.cs
- MachineKeySection.cs
- ContractCodeDomInfo.cs
- ETagAttribute.cs
- PeerEndPoint.cs
- DataSourceControlBuilder.cs
- PresentationSource.cs
- DataGridCell.cs
- MruCache.cs
- Pair.cs
- Latin1Encoding.cs
- DiffuseMaterial.cs
- FontCollection.cs
- TextInfo.cs
- MaskDescriptors.cs
- SoapHttpTransportImporter.cs
- AutoResetEvent.cs
- DesignTimeParseData.cs
- XmlnsCache.cs
- PathFigure.cs
- SelectionItemProviderWrapper.cs
- SafeEventLogWriteHandle.cs
- BaseDataList.cs
- DesignTableCollection.cs
- ChangeBlockUndoRecord.cs
- ReversePositionQuery.cs
- PropertyDescriptorGridEntry.cs
- DefinitionBase.cs
- ScaleTransform3D.cs
- DesignerHost.cs
- ECDsa.cs
- InputLangChangeEvent.cs
- XmlSchemaSimpleContentRestriction.cs
- StylusOverProperty.cs
- DropSourceBehavior.cs
- ExpressionPrefixAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- Maps.cs
- DataProtectionSecurityStateEncoder.cs
- cookiecollection.cs
- IISUnsafeMethods.cs
- UInt64Storage.cs
- MailBnfHelper.cs
- XPathItem.cs
- ValidationPropertyAttribute.cs
- QueueSurrogate.cs
- LocationSectionRecord.cs
- Random.cs
- SystemResourceHost.cs
- InvokePattern.cs
- AQNBuilder.cs
- BuildProviderAppliesToAttribute.cs
- ByteArrayHelperWithString.cs
- EnumMemberAttribute.cs
- EmbeddedMailObjectsCollection.cs
- securestring.cs
- UIElementAutomationPeer.cs
- DataGridViewCellValidatingEventArgs.cs
- HashMembershipCondition.cs
- DeobfuscatingStream.cs
- DisplayInformation.cs
- DataKeyArray.cs
- ActiveXMessageFormatter.cs
- TreeNodeMouseHoverEvent.cs
- MenuTracker.cs
- LinkUtilities.cs