Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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
- XmlCharType.cs
- ExtensionCollection.cs
- TextEditorDragDrop.cs
- DotAtomReader.cs
- RealizationContext.cs
- SqlWebEventProvider.cs
- FormClosingEvent.cs
- iisPickupDirectory.cs
- AttachedAnnotation.cs
- SymbolPair.cs
- BitmapInitialize.cs
- DataGridViewCellLinkedList.cs
- ExternalCalls.cs
- BaseAppDomainProtocolHandler.cs
- PtsPage.cs
- CodeParameterDeclarationExpression.cs
- ImageList.cs
- TaiwanCalendar.cs
- HttpServerUtilityBase.cs
- BooleanKeyFrameCollection.cs
- CustomValidator.cs
- DrawListViewSubItemEventArgs.cs
- ValueTable.cs
- DocobjHost.cs
- HttpRuntimeSection.cs
- InstancePersistenceCommandException.cs
- SignatureHelper.cs
- Command.cs
- X509Certificate2Collection.cs
- StylusPointPropertyId.cs
- Effect.cs
- SqlNamer.cs
- Permission.cs
- XmlILOptimizerVisitor.cs
- MediaTimeline.cs
- MultipartIdentifier.cs
- MetabaseSettingsIis7.cs
- ResourceExpressionBuilder.cs
- WindowsFormsSectionHandler.cs
- ByteAnimation.cs
- DocumentViewerConstants.cs
- HtmlInputRadioButton.cs
- FastPropertyAccessor.cs
- ZipIOBlockManager.cs
- FixedSOMTableRow.cs
- DbProviderSpecificTypePropertyAttribute.cs
- InheritanceAttribute.cs
- HttpListenerPrefixCollection.cs
- TreeBuilderXamlTranslator.cs
- CodeParameterDeclarationExpression.cs
- DrawTreeNodeEventArgs.cs
- Viewport3DVisual.cs
- SessionState.cs
- DBPropSet.cs
- Bidi.cs
- CustomAttribute.cs
- NetSectionGroup.cs
- Columns.cs
- PriorityQueue.cs
- WebDescriptionAttribute.cs
- OptimizedTemplateContent.cs
- NotifyCollectionChangedEventArgs.cs
- WorkerRequest.cs
- ContentFileHelper.cs
- XmlSchemaSimpleTypeRestriction.cs
- DesignerAdRotatorAdapter.cs
- InvokeBase.cs
- DateTimeFormatInfo.cs
- SimpleRecyclingCache.cs
- DataListItemCollection.cs
- FlowDocumentFormatter.cs
- BaseContextMenu.cs
- AlignmentXValidation.cs
- ListViewItem.cs
- MapPathBasedVirtualPathProvider.cs
- SplitterEvent.cs
- UiaCoreTypesApi.cs
- GridView.cs
- CodeTypeReference.cs
- InputProviderSite.cs
- CryptoApi.cs
- ToolStripItemTextRenderEventArgs.cs
- ScrollBarRenderer.cs
- AttachedPropertyBrowsableAttribute.cs
- XmlUnspecifiedAttribute.cs
- MonthCalendar.cs
- StrokeDescriptor.cs
- PtsPage.cs
- DataGridViewAccessibleObject.cs
- ToolZoneDesigner.cs
- HScrollProperties.cs
- SmtpAuthenticationManager.cs
- XmlCharacterData.cs
- HealthMonitoringSectionHelper.cs
- StringBuilder.cs
- _SingleItemRequestCache.cs
- OleDbFactory.cs
- MethodRental.cs
- XmlSchemaElement.cs
- CannotUnloadAppDomainException.cs