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
- ForeignKeyConstraint.cs
- BaseUriWithWildcard.cs
- DocumentReferenceCollection.cs
- SignatureDescription.cs
- WebColorConverter.cs
- AssociationTypeEmitter.cs
- EntityDataSourceView.cs
- AssemblySettingAttributes.cs
- MasterPage.cs
- ConnectorSelectionGlyph.cs
- TableAdapterManagerMethodGenerator.cs
- InstanceView.cs
- LazyTextWriterCreator.cs
- TemplatedMailWebEventProvider.cs
- XamlReader.cs
- DataColumnPropertyDescriptor.cs
- DecimalConverter.cs
- DtdParser.cs
- XmlSecureResolver.cs
- FixedPosition.cs
- ProcessHost.cs
- DeliveryRequirementsAttribute.cs
- LongValidatorAttribute.cs
- BitmapEffectState.cs
- StreamHelper.cs
- DesignerSerializationVisibilityAttribute.cs
- StrongNameKeyPair.cs
- UIAgentAsyncEndRequest.cs
- CacheDependency.cs
- GacUtil.cs
- NativeRecognizer.cs
- FixedDocumentSequencePaginator.cs
- InvalidFilterCriteriaException.cs
- SystemSounds.cs
- TraceSection.cs
- CodeAttributeArgumentCollection.cs
- HostExecutionContextManager.cs
- ApplicationInfo.cs
- SafeReversePInvokeHandle.cs
- VirtualDirectoryMapping.cs
- AllMembershipCondition.cs
- SecurityTokenParameters.cs
- RtfToken.cs
- JsonQueryStringConverter.cs
- RepeatBehaviorConverter.cs
- StringExpressionSet.cs
- ModifierKeysConverter.cs
- WaitForChangedResult.cs
- IndexedGlyphRun.cs
- CompletionBookmark.cs
- InputReport.cs
- WebExceptionStatus.cs
- ClientTargetSection.cs
- ImageKeyConverter.cs
- SystemTcpStatistics.cs
- IsolatedStorageFile.cs
- DropSource.cs
- TextEffectResolver.cs
- SchemaNames.cs
- Tokenizer.cs
- KeyboardNavigation.cs
- AssemblyCacheEntry.cs
- AlternateViewCollection.cs
- Cell.cs
- StringUtil.cs
- TreeNodeBindingDepthConverter.cs
- HwndSourceParameters.cs
- DataKey.cs
- FunctionQuery.cs
- RichTextBox.cs
- ManagementObjectSearcher.cs
- OletxTransactionHeader.cs
- FixedSOMGroup.cs
- ObjectDataSourceStatusEventArgs.cs
- XhtmlBasicTextViewAdapter.cs
- FastEncoderWindow.cs
- StylusPlugin.cs
- ConfigurationManager.cs
- PeerNameRecord.cs
- UserControlCodeDomTreeGenerator.cs
- MonthCalendar.cs
- RectConverter.cs
- TabletDevice.cs
- RootBuilder.cs
- BulletDecorator.cs
- GeneralTransformGroup.cs
- NamespaceTable.cs
- RoleService.cs
- ServerValidateEventArgs.cs
- HostSecurityManager.cs
- TargetControlTypeCache.cs
- MessageTraceRecord.cs
- InternalTransaction.cs
- DataBindingExpressionBuilder.cs
- PathParser.cs
- PerformanceCountersElement.cs
- DocumentPageViewAutomationPeer.cs
- BuildResultCache.cs
- StringCollectionEditor.cs
- ExtendedProtectionPolicy.cs