Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / WaitForChangedResult.cs / 1305376 / WaitForChangedResult.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System; ////// public struct WaitForChangedResult { private WatcherChangeTypes changeType; private string name; private string oldName; private bool timedOut; ///Waits for a change in the specified path. ////// internal static readonly WaitForChangedResult TimedOutResult = new WaitForChangedResult(0, null, true); ////// Specifies that 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, 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, string oldName, bool timedOut) { this.changeType = changeType; this.name = name; this.oldName = oldName; this.timedOut = 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. /// /// public WatcherChangeTypes ChangeType { get { return changeType; } set { changeType = value; } } ////// Gets or sets the type of change to watch for. /// ////// public string Name { get { return name; } set { name = value; } } ////// Gets or sets the name of the file or subdirectory that has changed. /// ////// public string OldName { get { return oldName; } set { oldName = value; } } ////// Gets or sets the original name of the file or subdirectory that has been /// renamed. /// ////// public bool TimedOut { get { return timedOut; } set { timedOut = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or sets a value indicating whether the process has timed out. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System; ////// public struct WaitForChangedResult { private WatcherChangeTypes changeType; private string name; private string oldName; private bool timedOut; ///Waits for a change in the specified path. ////// internal static readonly WaitForChangedResult TimedOutResult = new WaitForChangedResult(0, null, true); ////// Specifies that 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, 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, string oldName, bool timedOut) { this.changeType = changeType; this.name = name; this.oldName = oldName; this.timedOut = 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. /// /// public WatcherChangeTypes ChangeType { get { return changeType; } set { changeType = value; } } ////// Gets or sets the type of change to watch for. /// ////// public string Name { get { return name; } set { name = value; } } ////// Gets or sets the name of the file or subdirectory that has changed. /// ////// public string OldName { get { return oldName; } set { oldName = value; } } ////// Gets or sets the original name of the file or subdirectory that has been /// renamed. /// ////// public bool TimedOut { get { return timedOut; } set { timedOut = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or sets a value indicating whether the process has timed out. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlReader.cs
- RenamedEventArgs.cs
- ManageRequest.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- cryptoapiTransform.cs
- DbCommandTree.cs
- SmiEventSink_Default.cs
- Classification.cs
- ExpressionDumper.cs
- WizardSideBarListControlItem.cs
- DataPagerFieldCollection.cs
- PenContext.cs
- XmlExtensionFunction.cs
- Pkcs7Signer.cs
- HttpHandlerAction.cs
- OletxTransactionFormatter.cs
- ButtonRenderer.cs
- ClientSettingsStore.cs
- ResourcePermissionBaseEntry.cs
- XmlObjectSerializerWriteContextComplex.cs
- LinqDataSourceView.cs
- SqlReferenceCollection.cs
- WebEventCodes.cs
- IconConverter.cs
- DocumentGrid.cs
- _NTAuthentication.cs
- Helpers.cs
- Pair.cs
- TdsParser.cs
- URLAttribute.cs
- OpenTypeLayout.cs
- Descriptor.cs
- ClientConfigurationHost.cs
- ExpressionVisitor.cs
- RemoteTokenFactory.cs
- GridViewRowPresenter.cs
- ZoneButton.cs
- DBNull.cs
- InlinedAggregationOperatorEnumerator.cs
- ItemChangedEventArgs.cs
- util.cs
- SourceFilter.cs
- PropertyTabChangedEvent.cs
- PackageRelationshipCollection.cs
- RtfControlWordInfo.cs
- DataRelationPropertyDescriptor.cs
- XamlStyleSerializer.cs
- FormViewUpdatedEventArgs.cs
- RelatedCurrencyManager.cs
- AsymmetricKeyExchangeDeformatter.cs
- RelatedCurrencyManager.cs
- OdbcConnectionString.cs
- Command.cs
- __Filters.cs
- VersionPair.cs
- ClockGroup.cs
- SoapFaultCodes.cs
- XmlIlTypeHelper.cs
- COM2Enum.cs
- XmlReaderSettings.cs
- AssemblyCollection.cs
- PropertyExpression.cs
- Normalization.cs
- SupportingTokenParameters.cs
- controlskin.cs
- TimeoutValidationAttribute.cs
- RegisteredExpandoAttribute.cs
- CodeSubDirectoriesCollection.cs
- TypeDelegator.cs
- ExtendedPropertyCollection.cs
- Span.cs
- SqlDelegatedTransaction.cs
- ResourcePermissionBaseEntry.cs
- XmlSerializerFactory.cs
- AsyncCompletedEventArgs.cs
- EntityDataSourceContainerNameConverter.cs
- ScriptControl.cs
- CharAnimationUsingKeyFrames.cs
- GradientStop.cs
- TypedDataSetSchemaImporterExtension.cs
- SessionEndingEventArgs.cs
- TextParagraphProperties.cs
- Int32Animation.cs
- Crc32.cs
- FileUtil.cs
- Msec.cs
- CheckBoxField.cs
- CatalogPartCollection.cs
- Animatable.cs
- Mouse.cs
- CompositeDataBoundControl.cs
- OutputCacheProviderCollection.cs
- SystemIPv6InterfaceProperties.cs
- DrawingGroup.cs
- SmtpNegotiateAuthenticationModule.cs
- InfiniteTimeSpanConverter.cs
- AnchoredBlock.cs
- SqlVersion.cs
- Point3DAnimationBase.cs
- SchemaElementDecl.cs