Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }/// 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
- FigureParagraph.cs
- ByteAnimationUsingKeyFrames.cs
- MouseEventArgs.cs
- SmiEventSink.cs
- WorkerRequest.cs
- PageCatalogPart.cs
- Ports.cs
- LinkLabel.cs
- DBAsyncResult.cs
- ValidationRule.cs
- RIPEMD160.cs
- ProgressBarHighlightConverter.cs
- OperationBehaviorAttribute.cs
- Part.cs
- ADMembershipProvider.cs
- RegisteredArrayDeclaration.cs
- ObjectStateEntryDbDataRecord.cs
- CachedBitmap.cs
- WebPartManager.cs
- LayoutEvent.cs
- SimpleWebHandlerParser.cs
- MetadataSerializer.cs
- DictionaryEntry.cs
- StreamHelper.cs
- UnsignedPublishLicense.cs
- InternalControlCollection.cs
- AssertFilter.cs
- SpellerHighlightLayer.cs
- Codec.cs
- NewExpression.cs
- TabControlAutomationPeer.cs
- MediaCommands.cs
- EmptyStringExpandableObjectConverter.cs
- WorkflowMarkupSerializationProvider.cs
- RowUpdatingEventArgs.cs
- PrincipalPermission.cs
- MeasureData.cs
- ErrorHandlerFaultInfo.cs
- WindowsStatusBar.cs
- XmlSchemaImporter.cs
- handlecollector.cs
- FixedSOMTable.cs
- initElementDictionary.cs
- VirtualizingPanel.cs
- ServiceX509SecurityTokenProvider.cs
- DelegatingConfigHost.cs
- shaperfactoryquerycacheentry.cs
- SelectionProcessor.cs
- XXXInfos.cs
- HatchBrush.cs
- DbSetClause.cs
- WebBrowserEvent.cs
- CollectionBase.cs
- RepeaterItem.cs
- UpDownEvent.cs
- Expression.cs
- ParamArrayAttribute.cs
- Application.cs
- ForEachAction.cs
- ValidationResult.cs
- ElementHostPropertyMap.cs
- ValueTable.cs
- BitmapDownload.cs
- DecryptRequest.cs
- Rect3D.cs
- HandlerBase.cs
- Function.cs
- _BaseOverlappedAsyncResult.cs
- ActivityDesignerLayoutSerializers.cs
- SignatureDescription.cs
- PropertyToken.cs
- ContextMenu.cs
- WindowsStreamSecurityUpgradeProvider.cs
- MsdtcClusterUtils.cs
- CodeSubDirectoriesCollection.cs
- ViewStateModeByIdAttribute.cs
- TreeViewItemAutomationPeer.cs
- XmlSchemaSimpleContentRestriction.cs
- PointCollectionValueSerializer.cs
- DbConnectionPoolIdentity.cs
- RefType.cs
- MatrixTransform.cs
- CustomErrorsSection.cs
- CompilerTypeWithParams.cs
- ChangeNode.cs
- EntityDataSource.cs
- BaseDataListDesigner.cs
- DropDownList.cs
- EntityDataSourceUtil.cs
- IProvider.cs
- Cell.cs
- InsufficientMemoryException.cs
- TableAdapterManagerGenerator.cs
- AdvancedBindingEditor.cs
- XmlEntity.cs
- SafeNativeMethodsCLR.cs
- SiteMapPath.cs
- VisualTreeHelper.cs
- HTTPNotFoundHandler.cs
- ResolveNameEventArgs.cs