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
- XamlTreeBuilderBamlRecordWriter.cs
- IdnMapping.cs
- BooleanSwitch.cs
- RequestCacheEntry.cs
- ObjectStorage.cs
- ArraySortHelper.cs
- PageTheme.cs
- NCryptNative.cs
- PreviewPageInfo.cs
- DataServiceRequest.cs
- DrawingCollection.cs
- ParagraphResult.cs
- InfoCardUIAgent.cs
- TriggerActionCollection.cs
- ProfileInfo.cs
- MappingItemCollection.cs
- DesignerVerb.cs
- PropertyGrid.cs
- TextFormatterImp.cs
- NoResizeHandleGlyph.cs
- BitmapCodecInfoInternal.cs
- NominalTypeEliminator.cs
- LineInfo.cs
- PointConverter.cs
- ModuleElement.cs
- QilTypeChecker.cs
- SoapAttributes.cs
- TypeDelegator.cs
- CommandBindingCollection.cs
- XpsInterleavingPolicy.cs
- SqlDataSourceCustomCommandPanel.cs
- EdmItemError.cs
- GridViewHeaderRowPresenter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ServiceOperation.cs
- AssemblyLoader.cs
- TemplatedControlDesigner.cs
- RegistryPermission.cs
- ActiveXSite.cs
- UrlPath.cs
- SchemaTypeEmitter.cs
- ObjectTag.cs
- BulletedListEventArgs.cs
- MarkerProperties.cs
- StrokeNodeEnumerator.cs
- RegexMatchCollection.cs
- URIFormatException.cs
- DataIdProcessor.cs
- TransactionTable.cs
- GCHandleCookieTable.cs
- DataGridRow.cs
- State.cs
- FilteredXmlReader.cs
- SqlWebEventProvider.cs
- EventLogPermission.cs
- String.cs
- CursorInteropHelper.cs
- EventSinkHelperWriter.cs
- DetailsViewPageEventArgs.cs
- XamlSerializationHelper.cs
- EventSourceCreationData.cs
- TypeForwardedToAttribute.cs
- ParameterCollection.cs
- PaperSource.cs
- TextStore.cs
- PageRouteHandler.cs
- LayoutTableCell.cs
- TypeBuilderInstantiation.cs
- XhtmlTextWriter.cs
- HeaderedItemsControl.cs
- LinkArea.cs
- ReturnEventArgs.cs
- GPStream.cs
- GifBitmapDecoder.cs
- CodeDomSerializer.cs
- KeyedCollection.cs
- SHA512Managed.cs
- CustomPopupPlacement.cs
- TextTabProperties.cs
- TraceListeners.cs
- CustomCategoryAttribute.cs
- TdsParserHelperClasses.cs
- WebResourceAttribute.cs
- DbConnectionPoolOptions.cs
- FixedSOMSemanticBox.cs
- BorderGapMaskConverter.cs
- OdbcEnvironmentHandle.cs
- InvokePatternIdentifiers.cs
- UserControlBuildProvider.cs
- ProviderSettings.cs
- MULTI_QI.cs
- DrawListViewSubItemEventArgs.cs
- Span.cs
- Ticks.cs
- DependencySource.cs
- GeneratedCodeAttribute.cs
- SingleKeyFrameCollection.cs
- FileSecurity.cs
- TextMarkerSource.cs
- ComPlusDiagnosticTraceSchemas.cs