LogStore.Delete Method (String)

 

Removes the log store.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

[PermissionSetAttribute(SecurityAction.Demand, Unrestricted = true)]
public static void Delete(
	string path
)

Parameters

path
Type: System.String

A relative or absolute path for the base file of the log store to remove.

Exception Condition
ArgumentNullException

path is null.

ArgumentException

path is an empty string ("").

-or-

path contains only white space.

-or-

path contains one or more invalid characters.

FileNotFoundException

The file cannot be found.

IOException

An I/O error occurs when opening the log store.

UnauthorizedAccessException

Access for the specified log store is denied by the operating system.

.NET Framework
Available since 3.0
Return to top
Show: