Export (0) Print
Expand All

LogStore.Delete Method

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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft