Click or drag to resize

PlaceholderItemIsPlaceholder Method (SafeFileHandle)

IT Hit User File System
Determines if the file or folder path represents a placeholder or a regular file/folder by handle.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 3.1.7115.0-Beta
Syntax
public static bool IsPlaceholder(
	SafeFileHandle safeHandle
)

Parameters

safeHandle
Type: Microsoft.Win32.SafeHandlesSafeFileHandle
Item handle.

Return Value

Type: Boolean
True if the item is a placeholder. False - otherwise.
Examples

The code below is part of 'VirtualFileSystem' C# sample provided with the SDK.

C#
if (!PlaceholderItem.IsPlaceholder(userFileSystemPath))
{
    // Convert regular file/folder to placeholder. 
    // The file/folder was created or overwritten.
    PlaceholderItem.ConvertToPlaceholder(userFileSystemPath, false);
    LogMessage("Converted to placeholder", userFileSystemPath);
}
See Also