Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / IO / System / IO / RenamedEventArgs.cs / 1305376 / RenamedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.IO { using System.Diagnostics; using System.Security.Permissions; using System; using System.Runtime.Versioning; ////// 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 { [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] 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
- WinFormsComponentEditor.cs
- CapiSymmetricAlgorithm.cs
- EventsTab.cs
- BamlRecords.cs
- SetStoryboardSpeedRatio.cs
- Rect3DConverter.cs
- ADMembershipUser.cs
- dtdvalidator.cs
- WebBrowserNavigatedEventHandler.cs
- RegistrySecurity.cs
- BlurBitmapEffect.cs
- FacetDescription.cs
- InspectionWorker.cs
- XPathBinder.cs
- AlphaSortedEnumConverter.cs
- ParentQuery.cs
- ListBoxItem.cs
- ListViewItemEventArgs.cs
- TextBounds.cs
- StateValidator.cs
- InkCanvasAutomationPeer.cs
- IgnoreDataMemberAttribute.cs
- AssemblyBuilder.cs
- XNodeValidator.cs
- XsltQilFactory.cs
- EventWaitHandle.cs
- BlurEffect.cs
- ProtocolImporter.cs
- VerificationAttribute.cs
- PermissionSet.cs
- GridViewDeleteEventArgs.cs
- AstTree.cs
- DataBindingExpressionBuilder.cs
- ContentFilePart.cs
- Calendar.cs
- TextSearch.cs
- ValidationHelper.cs
- HttpDigestClientCredential.cs
- TrustManager.cs
- XPathNodeList.cs
- HMACSHA256.cs
- ListChangedEventArgs.cs
- odbcmetadatacolumnnames.cs
- PageParser.cs
- RelationshipConverter.cs
- WindowsBrush.cs
- FixedBufferAttribute.cs
- WebEventTraceProvider.cs
- DrawItemEvent.cs
- DayRenderEvent.cs
- AttributeUsageAttribute.cs
- codemethodreferenceexpression.cs
- ConnectionInterfaceCollection.cs
- WorkflowDesignerColors.cs
- DiagnosticStrings.cs
- MailSettingsSection.cs
- XmlReaderSettings.cs
- TextBoxDesigner.cs
- UdpConstants.cs
- MaskDesignerDialog.cs
- CacheForPrimitiveTypes.cs
- Enlistment.cs
- ApplicationInfo.cs
- Common.cs
- IsolatedStorageFilePermission.cs
- FragmentNavigationEventArgs.cs
- TypeConverterHelper.cs
- BasicExpandProvider.cs
- SynchronizationContext.cs
- SequentialWorkflowHeaderFooter.cs
- DocumentOutline.cs
- TrackingMemoryStream.cs
- StructuralCache.cs
- ConnectionProviderAttribute.cs
- HttpCapabilitiesSectionHandler.cs
- HebrewCalendar.cs
- GenericAuthenticationEventArgs.cs
- CoTaskMemHandle.cs
- PenLineJoinValidation.cs
- SQLMoney.cs
- GetImportedCardRequest.cs
- ObjectContext.cs
- AsymmetricSignatureDeformatter.cs
- ByteBufferPool.cs
- AttributedMetaModel.cs
- ListViewUpdateEventArgs.cs
- InputScope.cs
- QueryStringParameter.cs
- Focus.cs
- MappingItemCollection.cs
- Walker.cs
- XmlDataDocument.cs
- ErrorFormatter.cs
- SeparatorAutomationPeer.cs
- ToolStripRendererSwitcher.cs
- X509SecurityTokenParameters.cs
- DurableInstanceProvider.cs
- AuthenticationSection.cs
- DataGridViewTopLeftHeaderCell.cs
- DataTableReaderListener.cs