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
- CollectionViewGroupRoot.cs
- UpdatePanelTrigger.cs
- PrintPageEvent.cs
- UniformGrid.cs
- HttpListenerException.cs
- RectAnimationUsingKeyFrames.cs
- NamedPermissionSet.cs
- ResXResourceWriter.cs
- ProfileInfo.cs
- MenuItemStyle.cs
- SecUtil.cs
- DataKey.cs
- DispatchOperationRuntime.cs
- XamlPointCollectionSerializer.cs
- StreamSecurityUpgradeInitiator.cs
- NetworkInformationException.cs
- FixedLineResult.cs
- TdsRecordBufferSetter.cs
- LazyLoadBehavior.cs
- ServiceAuthorizationBehavior.cs
- ManipulationDevice.cs
- _ScatterGatherBuffers.cs
- BitmapEffectDrawingContent.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ValueSerializerAttribute.cs
- SecuritySessionClientSettings.cs
- FontWeightConverter.cs
- CompressionTransform.cs
- DataQuery.cs
- StateBag.cs
- DefaultEventAttribute.cs
- OleDbConnectionFactory.cs
- ArgumentValidation.cs
- PenThread.cs
- TextDecorationCollection.cs
- ResolveMatchesMessage11.cs
- ValidationErrorInfo.cs
- MD5.cs
- EventWaitHandle.cs
- MasterPage.cs
- PenThread.cs
- SignatureToken.cs
- ResourceCategoryAttribute.cs
- AlternateViewCollection.cs
- ResourceSetExpression.cs
- ControlCachePolicy.cs
- HttpModuleActionCollection.cs
- BaseDataListComponentEditor.cs
- WinInet.cs
- TextParaLineResult.cs
- WrappedIUnknown.cs
- HiddenFieldPageStatePersister.cs
- PrimarySelectionGlyph.cs
- TransformCollection.cs
- DefaultMemberAttribute.cs
- DesignerView.Commands.cs
- Timer.cs
- SecurityTokenSpecification.cs
- AbandonedMutexException.cs
- BaseInfoTable.cs
- GeneratedView.cs
- ReadOnlyTernaryTree.cs
- ListBoxChrome.cs
- VerticalAlignConverter.cs
- HttpWrapper.cs
- FileLogRecordStream.cs
- QilReference.cs
- ParserHooks.cs
- EventHandlersStore.cs
- ListItemConverter.cs
- CurrentTimeZone.cs
- WMIGenerator.cs
- OracleEncoding.cs
- HandlerBase.cs
- SerialPinChanges.cs
- ModifiableIteratorCollection.cs
- FileUtil.cs
- __Filters.cs
- ReliabilityContractAttribute.cs
- StringValidatorAttribute.cs
- ViewEventArgs.cs
- Math.cs
- Vector3DValueSerializer.cs
- GiveFeedbackEvent.cs
- FocusTracker.cs
- ConstructorBuilder.cs
- ByteAnimation.cs
- AmbientProperties.cs
- Brush.cs
- ToolStripLocationCancelEventArgs.cs
- Vector3DConverter.cs
- LogWriteRestartAreaAsyncResult.cs
- Material.cs
- Bits.cs
- DataRowView.cs
- HttpGetServerProtocol.cs
- MarkupObject.cs
- EntryPointNotFoundException.cs
- ListMarkerSourceInfo.cs
- MethodBody.cs