Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; ////// public class RenamedEventArgs : FileSystemEventArgs { private string oldName; private string oldFullPath; ///Provides data for the ///event. /// public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string name, string oldName) : base(changeType, directory, name) { // Ensure that the directory name ends with a "\" if (!directory.EndsWith("\\", StringComparison.Ordinal)) { directory = directory + "\\"; } this.oldName = oldName; this.oldFullPath = directory + oldName; } ////// Initializes a new instance of the ////// class. /// /// public string OldFullPath { get { new FileIOPermission(FileIOPermissionAccess.Read, Path.GetPathRoot(oldFullPath)).Demand(); return oldFullPath; } } ////// Gets /// the previous fully qualified path of the affected file or directory. /// ////// public string OldName { get { return oldName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets /// the old name of the affected file or directory. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; ////// public class RenamedEventArgs : FileSystemEventArgs { private string oldName; private string oldFullPath; ///Provides data for the ///event. /// public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string name, string oldName) : base(changeType, directory, name) { // Ensure that the directory name ends with a "\" if (!directory.EndsWith("\\", StringComparison.Ordinal)) { directory = directory + "\\"; } this.oldName = oldName; this.oldFullPath = directory + oldName; } ////// Initializes a new instance of the ////// class. /// /// public string OldFullPath { get { new FileIOPermission(FileIOPermissionAccess.Read, Path.GetPathRoot(oldFullPath)).Demand(); return oldFullPath; } } ////// Gets /// the previous fully qualified path of the affected file or directory. /// ////// public string OldName { get { return oldName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets /// the old name of the affected file or directory. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrongNameKeyPair.cs
- DocumentPage.cs
- ToolboxDataAttribute.cs
- CodeIterationStatement.cs
- XmlSequenceWriter.cs
- XamlFigureLengthSerializer.cs
- ToolStripDropDown.cs
- TraceProvider.cs
- DataGridTablesFactory.cs
- RubberbandSelector.cs
- SQLInt32.cs
- Baml2006ReaderSettings.cs
- HttpAsyncResult.cs
- ListViewPagedDataSource.cs
- _emptywebproxy.cs
- AnnotationHighlightLayer.cs
- ValidationPropertyAttribute.cs
- FigureHelper.cs
- WebPartConnectionsEventArgs.cs
- ValidatingReaderNodeData.cs
- LinqDataSourceHelper.cs
- ExclusiveTcpListener.cs
- elementinformation.cs
- securestring.cs
- TraceInternal.cs
- CompilationRelaxations.cs
- ICspAsymmetricAlgorithm.cs
- ThreadAttributes.cs
- ScriptingProfileServiceSection.cs
- DateTimePicker.cs
- SequentialOutput.cs
- ServicePoint.cs
- TraceLevelHelper.cs
- BamlReader.cs
- ReadOnlyDataSourceView.cs
- Facet.cs
- ObjectRef.cs
- AmbientProperties.cs
- BitmapImage.cs
- PropertyConverter.cs
- XmlSchemaParticle.cs
- PointConverter.cs
- CardSpaceException.cs
- HtmlElementErrorEventArgs.cs
- NotCondition.cs
- CaseCqlBlock.cs
- CommonDialog.cs
- ClonableStack.cs
- ProxyWebPartManager.cs
- ScrollProperties.cs
- HtmlInputHidden.cs
- WebPartActionVerb.cs
- StylusPointPropertyInfo.cs
- ExceptionUtility.cs
- PenLineJoinValidation.cs
- XPathAxisIterator.cs
- ReferenceSchema.cs
- InfoCardSymmetricAlgorithm.cs
- EmptyCollection.cs
- SelectorAutomationPeer.cs
- NavigationFailedEventArgs.cs
- CalendarButton.cs
- XPathMultyIterator.cs
- WebPartDisplayModeCancelEventArgs.cs
- IpcManager.cs
- GridViewRowPresenter.cs
- PopOutPanel.cs
- SchemaMerger.cs
- ContextStack.cs
- ObjectDataSourceEventArgs.cs
- EntityDataSourceMemberPath.cs
- SecurityException.cs
- TreeNodeBindingCollection.cs
- XmlNotation.cs
- ButtonBaseAdapter.cs
- DisplayNameAttribute.cs
- RC2CryptoServiceProvider.cs
- StorageMappingItemLoader.cs
- ErasingStroke.cs
- ReturnEventArgs.cs
- WorkflowInstanceAbortedRecord.cs
- OracleDataReader.cs
- InvariantComparer.cs
- DataGridViewCellMouseEventArgs.cs
- MatrixAnimationUsingKeyFrames.cs
- FixedStringLookup.cs
- RegisteredHiddenField.cs
- FileRecordSequenceCompletedAsyncResult.cs
- TabControlEvent.cs
- DrawListViewItemEventArgs.cs
- BreakRecordTable.cs
- XsltInput.cs
- RightsManagementEncryptedStream.cs
- BuilderPropertyEntry.cs
- cryptoapiTransform.cs
- TypedReference.cs
- WeakEventTable.cs
- GetImportedCardRequest.cs
- QilScopedVisitor.cs
- TcpHostedTransportConfiguration.cs