Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (61 sloc) 3.67 KB
<Type Name="RenamedEventHandler" FullName="System.IO.RenamedEventHandler">
<TypeSignature Language="C#" Value="public delegate void RenamedEventHandler(object sender, RenamedEventArgs e);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed RenamedEventHandler extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.IO.RenamedEventHandler" />
<TypeSignature Language="VB.NET" Value="Public Delegate Sub RenamedEventHandler(sender As Object, e As RenamedEventArgs)" />
<TypeSignature Language="C++ CLI" Value="public delegate void RenamedEventHandler(System::Object ^ sender, RenamedEventArgs ^ e);" />
<TypeSignature Language="F#" Value="type RenamedEventHandler = delegate of obj * RenamedEventArgs -&gt; unit" />
<AssemblyInfo>
<AssemblyName>System.IO.FileSystem.Watcher</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.1.1.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="sender" Type="System.Object" />
<Parameter Name="e" Type="System.IO.RenamedEventArgs" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Docs>
<param name="sender">The source of the event.</param>
<param name="e">The <see cref="T:System.IO.RenamedEventArgs" /> that contains the event data.</param>
<summary>Represents the method that will handle the <see cref="E:System.IO.FileSystemWatcher.Renamed" /> event of a <see cref="T:System.IO.FileSystemWatcher" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When you create a <xref:System.IO.RenamedEventHandler> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following example shows how to create a FileSystemWatcher to monitor file changes (creates, deletes, renames, changes) occurring on a disk drive. The example also shows how to properly receive error notifications.
[!code-csharp[FileSystemWatcher#1](~/samples/snippets/csharp/VS_Snippets_CLR/FileSystemWatcher/cs/filesystemwatcher.cs#1)]
[!code-vb[FileSystemWatcher#1](~/samples/snippets/visualbasic/VS_Snippets_CLR/FileSystemWatcher/VB/FileSystemWatcher.vb#1)]
]]></format>
</remarks>
<altmember cref="T:System.IO.FileSystemEventArgs" />
<altmember cref="T:System.IO.FileSystemEventHandler" />
<altmember cref="T:System.IO.FileSystemWatcher" />
<altmember cref="T:System.IO.InternalBufferOverflowException" />
<altmember cref="T:System.IO.NotifyFilters" />
<altmember cref="M:System.IO.FileSystemWatcher.OnRenamed(System.IO.RenamedEventArgs)" />
<altmember cref="E:System.IO.FileSystemWatcher.Renamed" />
<altmember cref="T:System.IO.RenamedEventArgs" />
<altmember cref="T:System.IO.WaitForChangedResult" />
<altmember cref="T:System.IO.WatcherChangeTypes" />
</Docs>
</Type>
You can’t perform that action at this time.