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
- Win32KeyboardDevice.cs
- SwitchDesigner.xaml.cs
- HttpClientCertificate.cs
- ClientApiGenerator.cs
- BitmapEffectInput.cs
- GAC.cs
- MLangCodePageEncoding.cs
- ListViewGroup.cs
- EmptyCollection.cs
- SqlDataReader.cs
- RequestResizeEvent.cs
- SurrogateSelector.cs
- NullableFloatMinMaxAggregationOperator.cs
- RepeaterDesigner.cs
- HttpServerVarsCollection.cs
- BaseComponentEditor.cs
- TextSimpleMarkerProperties.cs
- TextRangeEditTables.cs
- KeyBinding.cs
- __TransparentProxy.cs
- QilFactory.cs
- GuidelineSet.cs
- DataServiceOperationContext.cs
- EntityDataSourceWrapperCollection.cs
- TemplateNameScope.cs
- OuterGlowBitmapEffect.cs
- ClientScriptManager.cs
- TreeNodeCollectionEditorDialog.cs
- DockPanel.cs
- AmbientEnvironment.cs
- ObjectComplexPropertyMapping.cs
- ToolStripDropDownClosedEventArgs.cs
- User.cs
- ProcessRequestArgs.cs
- ForAllOperator.cs
- SQLMoney.cs
- TraceUtils.cs
- MinimizableAttributeTypeConverter.cs
- ContentPresenter.cs
- GregorianCalendarHelper.cs
- DataSourceHelper.cs
- ResourceSetExpression.cs
- UnhandledExceptionEventArgs.cs
- TemplatedWizardStep.cs
- path.cs
- SignatureToken.cs
- SystemFonts.cs
- ReverseInheritProperty.cs
- ExpressionDumper.cs
- Profiler.cs
- BrowserInteropHelper.cs
- ClientConvert.cs
- EUCJPEncoding.cs
- EventLogPermission.cs
- LogManagementAsyncResult.cs
- Brush.cs
- AppDomainUnloadedException.cs
- SqlServices.cs
- Activator.cs
- WebSysDescriptionAttribute.cs
- FileUtil.cs
- SqlFunctions.cs
- RectangleHotSpot.cs
- NativeMethods.cs
- SectionInformation.cs
- ConfigurationValidatorAttribute.cs
- Lasso.cs
- KeyedHashAlgorithm.cs
- CreateUserWizardStep.cs
- DataSourceCache.cs
- Restrictions.cs
- FindResponse.cs
- IfJoinedCondition.cs
- SQLGuid.cs
- RectangleConverter.cs
- InputLanguageEventArgs.cs
- DesignParameter.cs
- FormsAuthenticationUserCollection.cs
- SimplePropertyEntry.cs
- MemberCollection.cs
- PerformanceCounter.cs
- ObjectItemLoadingSessionData.cs
- IndexedEnumerable.cs
- WebServiceReceiveDesigner.cs
- FixedSOMTable.cs
- XPathNodePointer.cs
- httpserverutility.cs
- IfAction.cs
- TypeElement.cs
- DataRecordInfo.cs
- DesignerActionMethodItem.cs
- MimePart.cs
- Win32.cs
- DeferredTextReference.cs
- DecryptRequest.cs
- TabletDevice.cs
- ManifestBasedResourceGroveler.cs
- InputElement.cs
- XmlSchemaAny.cs
- XmlSchemaSimpleTypeUnion.cs