Shell32Win32DeleteFile Method
Deletes a file.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool Win32DeleteFile(
string path
)
<DllImportAttribute("Shell32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function Win32DeleteFile (
path As String
) As Boolean
Dim path As String
Dim returnValue As Boolean
returnValue = Shell32.Win32DeleteFile(path)
public:
[DllImportAttribute(L"Shell32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)]
static bool Win32DeleteFile(
String^ path
)
[<DllImportAttribute("Shell32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true, SetLastError = true)>]
static member Win32DeleteFile :
path : string -> bool
No code example is currently available or this language may not be supported.
- path String
-
A pointer to a buffer that contains the full name of the file to delete.
Boolean if the file was successfully deleted; otherwise
.