Code:
/ FX-1434 / FX-1434 / 1.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
- LicenseManager.cs
- ZipIOFileItemStream.cs
- ProcessModule.cs
- ClassicBorderDecorator.cs
- HttpInputStream.cs
- SerializerWriterEventHandlers.cs
- HttpHandlerActionCollection.cs
- EventPrivateKey.cs
- TableColumnCollectionInternal.cs
- ScrollEventArgs.cs
- TextChangedEventArgs.cs
- FtpWebResponse.cs
- EventLogStatus.cs
- DeferredTextReference.cs
- COM2ExtendedUITypeEditor.cs
- NamedPipeWorkerProcess.cs
- MessageHeaderAttribute.cs
- DataGridColumnHeaderAutomationPeer.cs
- AttachedAnnotation.cs
- SpeechUI.cs
- RenamedEventArgs.cs
- DataServiceProcessingPipelineEventArgs.cs
- HtmlTitle.cs
- DataTemplate.cs
- DictionaryBase.cs
- ExcludePathInfo.cs
- HttpCacheVaryByContentEncodings.cs
- DataFormats.cs
- StringUtil.cs
- DateTimeParse.cs
- AdPostCacheSubstitution.cs
- SmtpLoginAuthenticationModule.cs
- _DisconnectOverlappedAsyncResult.cs
- AccessText.cs
- UriTemplateLiteralPathSegment.cs
- WrappedKeySecurityToken.cs
- ScaleTransform3D.cs
- WriteTimeStream.cs
- StructureChangedEventArgs.cs
- WebBrowserBase.cs
- InvalidDataException.cs
- GridView.cs
- ObjectDataSource.cs
- DelegatedStream.cs
- SizeConverter.cs
- MappedMetaModel.cs
- EntityDataSourceStatementEditorForm.cs
- RouteItem.cs
- PriorityRange.cs
- StringComparer.cs
- RawStylusInputReport.cs
- StyleTypedPropertyAttribute.cs
- SelectorAutomationPeer.cs
- CombinedHttpChannel.cs
- DependentList.cs
- TileBrush.cs
- CalendarBlackoutDatesCollection.cs
- TypeAccessException.cs
- FolderLevelBuildProvider.cs
- ActivationService.cs
- EntityDesignerUtils.cs
- DataGridViewRowStateChangedEventArgs.cs
- HeaderedContentControl.cs
- QilNode.cs
- StringResourceManager.cs
- LambdaCompiler.Binary.cs
- SessionStateUtil.cs
- DependencyObjectProvider.cs
- BindUriHelper.cs
- CodeMemberMethod.cs
- BindUriHelper.cs
- CustomAttributeBuilder.cs
- WebBrowser.cs
- KeyMatchBuilder.cs
- LogEntryHeaderDeserializer.cs
- XmlSchemaProviderAttribute.cs
- Win32.cs
- PageBuildProvider.cs
- PeerTransportCredentialType.cs
- GlyphInfoList.cs
- DesignerView.cs
- CommonGetThemePartSize.cs
- SQLByteStorage.cs
- UnsafeNativeMethods.cs
- DbConnectionStringBuilder.cs
- WebBrowser.cs
- SerializationException.cs
- TextRangeProviderWrapper.cs
- InvalidFilterCriteriaException.cs
- TypefaceMap.cs
- Int32Collection.cs
- URIFormatException.cs
- XmlTextAttribute.cs
- FontStretches.cs
- NetworkAddressChange.cs
- FontNameConverter.cs
- CaseStatement.cs
- XmlNamedNodeMap.cs
- FixedTextPointer.cs
- EventMappingSettings.cs