Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; ////// 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; } } } }/// 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
- ByteAnimationUsingKeyFrames.cs
- WhiteSpaceTrimStringConverter.cs
- SmtpSection.cs
- EventLogPermission.cs
- SettingsContext.cs
- _IPv4Address.cs
- BitArray.cs
- RecipientInfo.cs
- JavaScriptSerializer.cs
- PageParser.cs
- SQLDateTimeStorage.cs
- SynthesizerStateChangedEventArgs.cs
- Internal.cs
- CommonDialog.cs
- ComplusTypeValidator.cs
- SecurityDescriptor.cs
- MonthCalendarDesigner.cs
- ImageSourceConverter.cs
- _Win32.cs
- ListControlBuilder.cs
- FontEmbeddingManager.cs
- DataGridViewLinkCell.cs
- XsltInput.cs
- SafeViewOfFileHandle.cs
- ElapsedEventArgs.cs
- _TLSstream.cs
- SiteMapDataSourceView.cs
- PreviewPrintController.cs
- DataSourceSelectArguments.cs
- InputLangChangeEvent.cs
- SystemMulticastIPAddressInformation.cs
- EnumValidator.cs
- StyleCollectionEditor.cs
- GlyphTypeface.cs
- HwndSource.cs
- FirstMatchCodeGroup.cs
- LockCookie.cs
- _IPv6Address.cs
- UnsignedPublishLicense.cs
- CodeTypeParameterCollection.cs
- FixedSOMTableCell.cs
- GenericRootAutomationPeer.cs
- DispatcherOperation.cs
- RectIndependentAnimationStorage.cs
- SqlVersion.cs
- IsolatedStorageFilePermission.cs
- StorageComplexTypeMapping.cs
- TemplatedWizardStep.cs
- EncoderParameter.cs
- ColorAnimation.cs
- XmlIlGenerator.cs
- ResourcesBuildProvider.cs
- UnauthorizedAccessException.cs
- TargetParameterCountException.cs
- ContainerSelectorBehavior.cs
- RequiredFieldValidator.cs
- EdmSchemaAttribute.cs
- Vector3DAnimationBase.cs
- DES.cs
- SHA256Managed.cs
- CapiHashAlgorithm.cs
- WebContext.cs
- SafeCoTaskMem.cs
- ExpandoObject.cs
- PeerReferralPolicy.cs
- ListParaClient.cs
- PlaceHolder.cs
- KeyboardEventArgs.cs
- UnsafeNativeMethodsPenimc.cs
- TextTreeUndoUnit.cs
- EditorPart.cs
- StopStoryboard.cs
- LinkDescriptor.cs
- BindingNavigator.cs
- SkinBuilder.cs
- FlowLayout.cs
- ClientBuildManagerCallback.cs
- AssemblyAttributesGoHere.cs
- StylusLogic.cs
- UriSection.cs
- StatusBarItemAutomationPeer.cs
- ConfigXmlText.cs
- StorageAssociationSetMapping.cs
- HMACRIPEMD160.cs
- LinqDataSourceValidationException.cs
- XPathScanner.cs
- ListViewInsertEventArgs.cs
- PathFigureCollection.cs
- RegistrySecurity.cs
- CommandEventArgs.cs
- AttributeTable.cs
- EnumValidator.cs
- PassportAuthenticationModule.cs
- SelectionItemPattern.cs
- ManagementDateTime.cs
- RMEnrollmentPage2.cs
- MenuItemCollectionEditorDialog.cs
- Pair.cs
- SimpleApplicationHost.cs
- SqlHelper.cs