Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Repeater.cs
- StateRuntime.cs
- ActiveXContainer.cs
- ColumnHeaderCollectionEditor.cs
- SqlTopReducer.cs
- MenuStrip.cs
- StreamWriter.cs
- KnownColorTable.cs
- ConditionedDesigner.cs
- IntSecurity.cs
- wgx_commands.cs
- ExecutionContext.cs
- IndentedTextWriter.cs
- HwndKeyboardInputProvider.cs
- ExpressionBindingsDialog.cs
- FreeFormDragDropManager.cs
- ADConnectionHelper.cs
- ObjRef.cs
- Translator.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- MetadataItemCollectionFactory.cs
- DbParameterHelper.cs
- DrawingState.cs
- SecUtil.cs
- BooleanExpr.cs
- Soap.cs
- WebScriptEnablingBehavior.cs
- AmbientProperties.cs
- BindingBase.cs
- SqlConnectionHelper.cs
- ProxyWebPartConnectionCollection.cs
- NavigationProperty.cs
- Int64Converter.cs
- TableProviderWrapper.cs
- SqlConnectionPoolProviderInfo.cs
- Light.cs
- ParenthesizePropertyNameAttribute.cs
- DependencyProperty.cs
- DecoderFallback.cs
- DataGridViewCell.cs
- Transform.cs
- PriorityQueue.cs
- DataGridViewIntLinkedList.cs
- OdbcEnvironmentHandle.cs
- PhonemeEventArgs.cs
- DataGridViewRowHeaderCell.cs
- DateTimeUtil.cs
- RIPEMD160.cs
- TextTreeInsertUndoUnit.cs
- Int16KeyFrameCollection.cs
- WindowsGraphicsWrapper.cs
- _Connection.cs
- RadioButton.cs
- SqlReorderer.cs
- SoapSchemaMember.cs
- FileSystemInfo.cs
- XPathAncestorQuery.cs
- CollectionTraceRecord.cs
- SchemaCollectionPreprocessor.cs
- DbConnectionStringBuilder.cs
- XomlCompilerHelpers.cs
- XNameConverter.cs
- ProtectedProviderSettings.cs
- TrustLevel.cs
- ScrollChrome.cs
- Missing.cs
- HttpProfileGroupBase.cs
- PaginationProgressEventArgs.cs
- EdmMember.cs
- CfgParser.cs
- WinFormsSpinner.cs
- BuildProviderAppliesToAttribute.cs
- FixedSOMPageConstructor.cs
- DetailsViewInsertedEventArgs.cs
- RenderCapability.cs
- System.Data_BID.cs
- VarRefManager.cs
- EnumerableRowCollection.cs
- DrawingServices.cs
- XmlBinaryWriterSession.cs
- Timer.cs
- SoapElementAttribute.cs
- MSG.cs
- SQLBytes.cs
- EmitterCache.cs
- WebPartVerbsEventArgs.cs
- AuthenticateEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- HttpModuleCollection.cs
- ListenerAdapterBase.cs
- DoubleUtil.cs
- TableCell.cs
- TextSpanModifier.cs
- HostingEnvironment.cs
- RightsManagementEncryptedStream.cs
- SpeechAudioFormatInfo.cs
- EpmContentSerializer.cs
- IdentityHolder.cs
- RoleService.cs
- AuthorizationRuleCollection.cs