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
- ToolZone.cs
- XsltContext.cs
- TableItemPattern.cs
- ControlCollection.cs
- IPAddressCollection.cs
- MethodAccessException.cs
- KeyedByTypeCollection.cs
- RolePrincipal.cs
- OdbcError.cs
- XmlLoader.cs
- FacetEnabledSchemaElement.cs
- KnownTypes.cs
- EncoderExceptionFallback.cs
- ConfigurationStrings.cs
- NullExtension.cs
- ButtonPopupAdapter.cs
- IfJoinedCondition.cs
- ContourSegment.cs
- PropertyHelper.cs
- DesignTable.cs
- ContainerFilterService.cs
- PingOptions.cs
- FileUpload.cs
- DeploymentSectionCache.cs
- NetworkInformationPermission.cs
- DataFieldEditor.cs
- MsmqChannelFactory.cs
- ZipPackagePart.cs
- UIElementHelper.cs
- TrustLevel.cs
- MessageBox.cs
- Parser.cs
- ChannelServices.cs
- ExecutionContext.cs
- streamingZipPartStream.cs
- WebEventCodes.cs
- DelegateTypeInfo.cs
- XmlHierarchicalDataSourceView.cs
- ProcessInfo.cs
- GB18030Encoding.cs
- _ProxyRegBlob.cs
- HwndSubclass.cs
- DataGridViewCellStyleChangedEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- QueryConverter.cs
- PackagingUtilities.cs
- SqlUDTStorage.cs
- precedingsibling.cs
- StylusButtonCollection.cs
- ConstructorBuilder.cs
- UInt64.cs
- SystemColorTracker.cs
- NotImplementedException.cs
- ToolStripItemDataObject.cs
- RootBrowserWindowAutomationPeer.cs
- ItemType.cs
- CookielessHelper.cs
- InvalidComObjectException.cs
- CryptoConfig.cs
- ScrollBar.cs
- Baml2006KeyRecord.cs
- ParserHooks.cs
- XslAst.cs
- Sql8ConformanceChecker.cs
- StorageMappingItemLoader.cs
- ImpersonateTokenRef.cs
- ContextQuery.cs
- ObjectDataSourceEventArgs.cs
- CodeCompiler.cs
- LostFocusEventManager.cs
- ConfigurationSectionGroupCollection.cs
- NetworkInformationException.cs
- ToolboxSnapDragDropEventArgs.cs
- WebPartsSection.cs
- DropShadowEffect.cs
- CapacityStreamGeometryContext.cs
- WeakEventManager.cs
- CommonObjectSecurity.cs
- RuleElement.cs
- Synchronization.cs
- HtmlInputReset.cs
- RewritingValidator.cs
- ScaleTransform.cs
- FieldNameLookup.cs
- EntityRecordInfo.cs
- TextBoxView.cs
- RemoteX509Token.cs
- GiveFeedbackEvent.cs
- ValidationError.cs
- SchemaMapping.cs
- Permission.cs
- SecureStringHasher.cs
- EdmRelationshipRoleAttribute.cs
- Query.cs
- GridViewRowEventArgs.cs
- CancellationHandlerDesigner.cs
- PaperSize.cs
- WmlMobileTextWriter.cs
- DataGridViewCellCollection.cs
- DesignerAttribute.cs