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
- FamilyTypefaceCollection.cs
- NativeWindow.cs
- HttpResponseInternalWrapper.cs
- TaskExtensions.cs
- DiscoveryDocumentLinksPattern.cs
- IteratorAsyncResult.cs
- WorkflowRuntimeBehavior.cs
- ProxyManager.cs
- LogEntrySerializer.cs
- ClockGroup.cs
- FrameworkElementFactoryMarkupObject.cs
- CodePrimitiveExpression.cs
- ConstraintStruct.cs
- ResourceAttributes.cs
- SpinWait.cs
- XmlDataSourceNodeDescriptor.cs
- Command.cs
- ContentPlaceHolderDesigner.cs
- FtpCachePolicyElement.cs
- ColumnPropertiesGroup.cs
- DuplexChannelBinder.cs
- ScriptResourceAttribute.cs
- RegexBoyerMoore.cs
- ProxyWebPartManager.cs
- VirtualizingStackPanel.cs
- HybridDictionary.cs
- DecodeHelper.cs
- ChtmlLinkAdapter.cs
- PointIndependentAnimationStorage.cs
- Membership.cs
- ServiceDurableInstance.cs
- FindSimilarActivitiesVerb.cs
- PageCatalogPart.cs
- WebRequestModulesSection.cs
- SQLByte.cs
- TextCollapsingProperties.cs
- HatchBrush.cs
- SafeArchiveContext.cs
- ApplicationSettingsBase.cs
- sqlinternaltransaction.cs
- HttpProfileBase.cs
- TextElement.cs
- Missing.cs
- PropertyFilter.cs
- List.cs
- CanExecuteRoutedEventArgs.cs
- StringBlob.cs
- Int32Rect.cs
- SweepDirectionValidation.cs
- GB18030Encoding.cs
- ParenthesizePropertyNameAttribute.cs
- SafeLocalMemHandle.cs
- SessionEndingEventArgs.cs
- ResourcePermissionBaseEntry.cs
- Root.cs
- SharedHttpsTransportManager.cs
- Vector3DIndependentAnimationStorage.cs
- Inflater.cs
- DataException.cs
- RoleManagerEventArgs.cs
- SynchronizationLockException.cs
- TableParaClient.cs
- File.cs
- RawUIStateInputReport.cs
- PaperSize.cs
- ControlBuilderAttribute.cs
- MobileControlDesigner.cs
- Guid.cs
- TextEffect.cs
- Merger.cs
- UmAlQuraCalendar.cs
- DBSqlParserTableCollection.cs
- Overlapped.cs
- ObjectQueryExecutionPlan.cs
- ListViewGroupItemCollection.cs
- NoClickablePointException.cs
- sqlpipe.cs
- WorkflowApplication.cs
- DoubleCollection.cs
- EFTableProvider.cs
- VoiceObjectToken.cs
- TextBox.cs
- PrintDialogDesigner.cs
- SetState.cs
- TextParagraphView.cs
- Memoizer.cs
- CharEntityEncoderFallback.cs
- CombinedTcpChannel.cs
- SQLInt32.cs
- __Filters.cs
- FlowDocumentPaginator.cs
- EncodingInfo.cs
- QueueException.cs
- dtdvalidator.cs
- Freezable.cs
- ZoneLinkButton.cs
- ByteBufferPool.cs
- ImageInfo.cs
- ConvertersCollection.cs
- DecoderNLS.cs