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
- ColorAnimationBase.cs
- SemanticBasicElement.cs
- SizeF.cs
- HtmlInputButton.cs
- DesignerVerb.cs
- TemplateBuilder.cs
- DesignerActionItem.cs
- ObjectListFieldCollection.cs
- WebPartDescriptionCollection.cs
- XpsFilter.cs
- Helpers.cs
- TextContainerChangedEventArgs.cs
- StylusPlugInCollection.cs
- CommandExpr.cs
- BindStream.cs
- Converter.cs
- DocumentXPathNavigator.cs
- PageDeviceFont.cs
- parserscommon.cs
- Viewport2DVisual3D.cs
- DictionarySurrogate.cs
- PermissionToken.cs
- FormParameter.cs
- FormatterConverter.cs
- ArgumentDirectionHelper.cs
- OracleCommand.cs
- MultipartContentParser.cs
- TextEncodedRawTextWriter.cs
- BitmapSourceSafeMILHandle.cs
- EllipseGeometry.cs
- ElapsedEventArgs.cs
- FileDialog.cs
- CodeObjectCreateExpression.cs
- DesignerDataTable.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SoapConverter.cs
- ApplicationSecurityInfo.cs
- WeakRefEnumerator.cs
- CodeParameterDeclarationExpression.cs
- ParseHttpDate.cs
- ListViewAutomationPeer.cs
- WindowsRichEdit.cs
- ItemCollection.cs
- ShutDownListener.cs
- MarkupObject.cs
- UdpDiscoveryEndpoint.cs
- DateRangeEvent.cs
- TreeView.cs
- HitTestParameters3D.cs
- CannotUnloadAppDomainException.cs
- WebPartUtil.cs
- Config.cs
- SystemIcmpV4Statistics.cs
- ToolboxComponentsCreatedEventArgs.cs
- UIElementIsland.cs
- RuntimeComponentFilter.cs
- mactripleDES.cs
- InfoCardSchemas.cs
- QuestionEventArgs.cs
- InvalidFilterCriteriaException.cs
- _WinHttpWebProxyDataBuilder.cs
- SequenceDesigner.cs
- CodeAssignStatement.cs
- ReferentialConstraintRoleElement.cs
- DesignerOptionService.cs
- DoubleAnimationUsingPath.cs
- COM2TypeInfoProcessor.cs
- SEHException.cs
- ComEventsSink.cs
- WorkflowViewStateService.cs
- DecimalConverter.cs
- InputProviderSite.cs
- PermissionRequestEvidence.cs
- Dump.cs
- FieldDescriptor.cs
- Win32.cs
- WsdlImporter.cs
- SimpleHandlerBuildProvider.cs
- DataTableReaderListener.cs
- MinimizableAttributeTypeConverter.cs
- DataServiceEntityAttribute.cs
- OracleRowUpdatingEventArgs.cs
- CssStyleCollection.cs
- TrustManagerPromptUI.cs
- PartialCachingAttribute.cs
- XPathExpr.cs
- HandleRef.cs
- UriTemplateEquivalenceComparer.cs
- KoreanLunisolarCalendar.cs
- LogArchiveSnapshot.cs
- CheckBoxFlatAdapter.cs
- EndOfStreamException.cs
- sqlnorm.cs
- TextTreeTextBlock.cs
- DataGridViewColumnEventArgs.cs
- ErrorStyle.cs
- BooleanFunctions.cs
- CompilationSection.cs
- ICspAsymmetricAlgorithm.cs
- ProviderMetadataCachedInformation.cs