Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MessageFilter.cs
- XPathExpr.cs
- ClickablePoint.cs
- RangeContentEnumerator.cs
- PaintEvent.cs
- XsdValidatingReader.cs
- Mouse.cs
- TagPrefixAttribute.cs
- TargetControlTypeCache.cs
- CellLabel.cs
- SqlBinder.cs
- AppliesToBehaviorDecisionTable.cs
- Activity.cs
- EventProviderWriter.cs
- BitmapEffectDrawingContextState.cs
- EventToken.cs
- Property.cs
- DateTimePicker.cs
- RenderContext.cs
- SafeUserTokenHandle.cs
- GrammarBuilderBase.cs
- SuppressedPackageProperties.cs
- AttachedAnnotationChangedEventArgs.cs
- EmptyEnumerator.cs
- WebPartCollection.cs
- COM2ColorConverter.cs
- DataGridRowHeaderAutomationPeer.cs
- SspiNegotiationTokenProvider.cs
- SafeCoTaskMem.cs
- ScrollViewerAutomationPeer.cs
- KnownBoxes.cs
- ConversionValidationRule.cs
- XslCompiledTransform.cs
- safex509handles.cs
- SiteMapNode.cs
- RelationshipEnd.cs
- AsymmetricAlgorithm.cs
- BuildProviderCollection.cs
- MobileControlsSection.cs
- SqlFormatter.cs
- X509CertificateTokenFactoryCredential.cs
- DateTimeValueSerializerContext.cs
- SR.cs
- PkcsUtils.cs
- AsyncContentLoadedEventArgs.cs
- InstancePersistenceEvent.cs
- OleDbPermission.cs
- Dynamic.cs
- EpmCustomContentSerializer.cs
- TypeHelpers.cs
- RegistrationContext.cs
- AccessorTable.cs
- FieldTemplateUserControl.cs
- ProxyElement.cs
- COM2ExtendedUITypeEditor.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlNavigatorFilter.cs
- BinaryMethodMessage.cs
- GuidTagList.cs
- FloatAverageAggregationOperator.cs
- ParagraphResult.cs
- Choices.cs
- RadioButtonRenderer.cs
- ValueUtilsSmi.cs
- SrgsGrammar.cs
- SubpageParaClient.cs
- MarshalByRefObject.cs
- Light.cs
- EncryptedXml.cs
- ScrollItemPattern.cs
- DataListGeneralPage.cs
- CodeCommentStatement.cs
- HandledMouseEvent.cs
- Block.cs
- ExternalException.cs
- XmlSchemaProviderAttribute.cs
- DataException.cs
- DashStyle.cs
- RepeatBehavior.cs
- MouseEvent.cs
- PagedDataSource.cs
- BinHexEncoding.cs
- KeyFrames.cs
- XamlToRtfWriter.cs
- DbMetaDataCollectionNames.cs
- EpmSourceTree.cs
- WebControlAdapter.cs
- ReverseInheritProperty.cs
- NumericPagerField.cs
- recordstatefactory.cs
- DbProviderFactory.cs
- SetterBaseCollection.cs
- DeviceContext2.cs
- GetParentChain.cs
- XPathDocumentBuilder.cs
- ForeignConstraint.cs
- OciHandle.cs
- SqlServices.cs
- XmlSchemaGroupRef.cs
- BamlTreeMap.cs