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; ////// 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
- FolderBrowserDialog.cs
- BitmapSourceSafeMILHandle.cs
- CharacterMetricsDictionary.cs
- IpcClientManager.cs
- SystemIPv4InterfaceProperties.cs
- CodeTryCatchFinallyStatement.cs
- Cursors.cs
- BindingContext.cs
- LocalizationComments.cs
- CompensatableTransactionScopeActivityDesigner.cs
- CommandField.cs
- RectangleHotSpot.cs
- IdentityHolder.cs
- TemplateKeyConverter.cs
- IPEndPoint.cs
- DataRow.cs
- _PooledStream.cs
- UnicastIPAddressInformationCollection.cs
- TemplateParser.cs
- TextCollapsingProperties.cs
- DiscoveryDocumentSerializer.cs
- ScriptResourceAttribute.cs
- ReflectionPermission.cs
- AutomationEventArgs.cs
- DoubleConverter.cs
- ServiceNotStartedException.cs
- RegexCharClass.cs
- CharConverter.cs
- Container.cs
- DataGridRelationshipRow.cs
- VariableAction.cs
- Registry.cs
- StringBuilder.cs
- InstanceCreationEditor.cs
- TypefaceCollection.cs
- GridViewDeletedEventArgs.cs
- ErrorRuntimeConfig.cs
- DataAdapter.cs
- DateTimeFormat.cs
- PageOrientation.cs
- SqlClientWrapperSmiStreamChars.cs
- OperatorExpressions.cs
- SqlGatherProducedAliases.cs
- IgnoreDataMemberAttribute.cs
- ActivityBindForm.cs
- XmlLanguageConverter.cs
- Camera.cs
- GPPOINTF.cs
- ExclusiveHandle.cs
- PieceDirectory.cs
- GroupDescription.cs
- SerializationSectionGroup.cs
- CodeCommentStatement.cs
- ToolboxItemFilterAttribute.cs
- PrintEvent.cs
- AccessDataSourceDesigner.cs
- WorkerRequest.cs
- TreeViewDesigner.cs
- InvalidProgramException.cs
- FlowLayoutPanelDesigner.cs
- PolyBezierSegmentFigureLogic.cs
- ArcSegment.cs
- PublisherIdentityPermission.cs
- BinaryObjectReader.cs
- ConstraintStruct.cs
- WorkflowRuntimeSection.cs
- TrackingParameters.cs
- HostVisual.cs
- DiscoveryMessageProperty.cs
- ColorAnimationUsingKeyFrames.cs
- MergeFailedEvent.cs
- GridViewRowCollection.cs
- TimeSpanValidator.cs
- InkCanvas.cs
- ModuleBuilderData.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- SoapAttributes.cs
- XmlSchemaSimpleType.cs
- FormViewRow.cs
- AudioFileOut.cs
- PreloadedPackages.cs
- HttpCapabilitiesBase.cs
- Missing.cs
- NameSpaceExtractor.cs
- ClientSideQueueItem.cs
- Graph.cs
- FileDetails.cs
- LogicalMethodInfo.cs
- ProcessHost.cs
- ScheduleChanges.cs
- Baml6Assembly.cs
- ComponentResourceManager.cs
- listviewsubitemcollectioneditor.cs
- SystemIPv4InterfaceProperties.cs
- HeaderCollection.cs
- SplineKeyFrames.cs
- SiteIdentityPermission.cs
- TransformProviderWrapper.cs
- XmlSchemaSimpleTypeRestriction.cs
- SharedPersonalizationStateInfo.cs