Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / WaitForChangedResult.cs / 1305376 / WaitForChangedResult.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.IO {
using System.Diagnostics;
using System;
///
/// Waits for a change in the specified path.
///
public struct WaitForChangedResult {
private WatcherChangeTypes changeType;
private string name;
private string oldName;
private bool timedOut;
///
///
/// Specifies that the call has timed out.
///
///
internal static readonly WaitForChangedResult TimedOutResult = new WaitForChangedResult(0, null, true);
///
///
/// Initializes a new instance of the class, given the
/// type of change to watch for, the folder to watch, and whether the call has
/// timed out.
///
///
internal WaitForChangedResult(WatcherChangeTypes changeType, string name, bool timedOut)
: this(changeType, name, null, timedOut){
}
///
///
/// Initializes a new instance of the class. This constructor is called when you are waiting
/// for a change in a file or directory name.
///
///
internal WaitForChangedResult(WatcherChangeTypes changeType, string name, string oldName, bool timedOut) {
this.changeType = changeType;
this.name = name;
this.oldName = oldName;
this.timedOut = timedOut;
}
///
///
/// Gets or sets the type of change to watch for.
///
///
public WatcherChangeTypes ChangeType {
get {
return changeType;
}
set {
changeType = value;
}
}
///
///
/// Gets or sets the name of the file or subdirectory that has changed.
///
///
public string Name {
get {
return name;
}
set {
name = value;
}
}
///
///
/// Gets or sets the original name of the file or subdirectory that has been
/// renamed.
///
///
public string OldName {
get {
return oldName;
}
set {
oldName = value;
}
}
///
///
/// Gets or sets a value indicating whether the process has timed out.
///
///
public bool TimedOut {
get {
return timedOut;
}
set {
timedOut = value;
}
}
}
}
// 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
- UniqueIdentifierService.cs
- ChildrenQuery.cs
- BinHexDecoder.cs
- SqlServer2KCompatibilityAnnotation.cs
- StructureChangedEventArgs.cs
- DesignerForm.cs
- BinaryWriter.cs
- PropertyEmitterBase.cs
- AsnEncodedData.cs
- DataGridColumnEventArgs.cs
- TimeEnumHelper.cs
- WinInet.cs
- Suspend.cs
- LicenseProviderAttribute.cs
- ContentFilePart.cs
- WinFormsUtils.cs
- ConfigPathUtility.cs
- TextDecorationCollection.cs
- IgnoreFileBuildProvider.cs
- AutoGeneratedFieldProperties.cs
- DllHostInitializer.cs
- PolicyLevel.cs
- ProcessThread.cs
- DuplicateDetector.cs
- TileBrush.cs
- CompletedAsyncResult.cs
- CommandValueSerializer.cs
- XmlStringTable.cs
- XhtmlTextWriter.cs
- SimpleLine.cs
- _CacheStreams.cs
- MaterializeFromAtom.cs
- PrtCap_Public_Simple.cs
- SetStoryboardSpeedRatio.cs
- DoubleAnimationBase.cs
- RedistVersionInfo.cs
- ResourcePool.cs
- ListItemCollection.cs
- IisTraceListener.cs
- GridEntry.cs
- DesignerActionVerbItem.cs
- ErrorTableItemStyle.cs
- Point3DCollectionConverter.cs
- PermissionToken.cs
- SecurityState.cs
- BoundPropertyEntry.cs
- TextCharacters.cs
- EntityDataSourceMemberPath.cs
- ToggleButton.cs
- CodeIdentifiers.cs
- WindowsTokenRoleProvider.cs
- RootBrowserWindowProxy.cs
- VolatileEnlistmentState.cs
- DataRowChangeEvent.cs
- WebInvokeAttribute.cs
- EntityDataSourceDesignerHelper.cs
- recordstatefactory.cs
- MatrixTransform3D.cs
- XhtmlBasicTextViewAdapter.cs
- Wizard.cs
- HandlerBase.cs
- FileRecordSequence.cs
- Error.cs
- BindingContext.cs
- TextCompositionEventArgs.cs
- ReadOnlyDictionary.cs
- WindowsClaimSet.cs
- XPathNodeList.cs
- ViewBox.cs
- WeakReferenceEnumerator.cs
- Math.cs
- SpecularMaterial.cs
- XNodeValidator.cs
- TrackingProfileManager.cs
- BookmarkManager.cs
- UniqueConstraint.cs
- StringAttributeCollection.cs
- ChtmlTextWriter.cs
- ThreadExceptionDialog.cs
- Transform3DGroup.cs
- TextBoxRenderer.cs
- NotFiniteNumberException.cs
- EditorZoneBase.cs
- DbConnectionInternal.cs
- ExcludeFromCodeCoverageAttribute.cs
- SlipBehavior.cs
- AbstractSvcMapFileLoader.cs
- util.cs
- HwndHost.cs
- LastQueryOperator.cs
- PackageRelationship.cs
- IPGlobalProperties.cs
- FormsAuthenticationModule.cs
- XPathException.cs
- TableLayoutRowStyleCollection.cs
- DataGridColumnHeaderCollection.cs
- VirtualDirectoryMappingCollection.cs
- FontInfo.cs
- SubtreeProcessor.cs
- StylusDevice.cs