Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / IO / System / IO / WaitForChangedResult.cs / 1 / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LogWriteRestartAreaAsyncResult.cs
- Command.cs
- HtmlButton.cs
- Section.cs
- SeparatorAutomationPeer.cs
- TemplateControl.cs
- AsymmetricKeyExchangeDeformatter.cs
- ProxyHelper.cs
- PageTheme.cs
- DataBoundControlHelper.cs
- Knowncolors.cs
- ActiveXContainer.cs
- RealizationContext.cs
- OracleException.cs
- ChtmlTextWriter.cs
- TypedAsyncResult.cs
- StyleXamlParser.cs
- InheritablePropertyChangeInfo.cs
- TypeAccessException.cs
- WebPartMovingEventArgs.cs
- Debugger.cs
- StaticSiteMapProvider.cs
- login.cs
- ThemeDictionaryExtension.cs
- BaseResourcesBuildProvider.cs
- PropertyEmitter.cs
- NextPreviousPagerField.cs
- OperationAbortedException.cs
- FamilyCollection.cs
- __ConsoleStream.cs
- ParameterSubsegment.cs
- LoginCancelEventArgs.cs
- BackStopAuthenticationModule.cs
- HttpContextWrapper.cs
- TrackingCondition.cs
- TextParagraphProperties.cs
- JsonSerializer.cs
- BaseConfigurationRecord.cs
- ComponentCollection.cs
- RectangleGeometry.cs
- MouseOverProperty.cs
- RMPermissions.cs
- XmlEnumAttribute.cs
- ProvideValueServiceProvider.cs
- RuleCache.cs
- EmptyControlCollection.cs
- LongValidatorAttribute.cs
- SinglePhaseEnlistment.cs
- XmlSchemaSimpleTypeList.cs
- DictionaryCustomTypeDescriptor.cs
- XpsS0ValidatingLoader.cs
- RedBlackList.cs
- processwaithandle.cs
- ThreadExceptionDialog.cs
- Matrix3DStack.cs
- EndpointBehaviorElement.cs
- SID.cs
- SvcMapFile.cs
- DocumentPageViewAutomationPeer.cs
- FilterQueryOptionExpression.cs
- _LocalDataStore.cs
- CopyNamespacesAction.cs
- ToolStripItemRenderEventArgs.cs
- ServiceDescription.cs
- DesignerValidatorAdapter.cs
- BatchWriter.cs
- TextRangeBase.cs
- EntityReference.cs
- QuadraticBezierSegment.cs
- XPathBinder.cs
- DataControlButton.cs
- dtdvalidator.cs
- _HelperAsyncResults.cs
- Parameter.cs
- PublishLicense.cs
- XPathSelectionIterator.cs
- TcpDuplicateContext.cs
- ListCollectionView.cs
- CultureData.cs
- Rotation3DKeyFrameCollection.cs
- HttpCapabilitiesBase.cs
- SmtpReplyReader.cs
- DataServiceProcessingPipelineEventArgs.cs
- Not.cs
- DataFormat.cs
- ConfigurationFileMap.cs
- DiscoveryServerProtocol.cs
- SystemColors.cs
- ModuleBuilderData.cs
- OrderToken.cs
- EdmProviderManifest.cs
- AttachmentCollection.cs
- XNodeNavigator.cs
- XmlSchemaComplexContent.cs
- DirectoryInfo.cs
- SemanticKeyElement.cs
- GiveFeedbackEventArgs.cs
- invalidudtexception.cs
- ObjectDisposedException.cs
- ChildTable.cs