PlaceholderItemIsPlaceholder Method |
IT Hit User File System
Determines if the file or folder path represents a placeholder or a regular file/folder.
Namespace:
ITHit.FileSystem.Windows
Assembly:
ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 1.4.4298.0
Syntaxpublic static bool IsPlaceholder(
string userFileSystemPath
)
Public Shared Function IsPlaceholder (
userFileSystemPath As String
) As Boolean
public:
static bool IsPlaceholder(
String^ userFileSystemPath
)
static member IsPlaceholder :
userFileSystemPath : string -> bool
Parameters
- userFileSystemPath
- Type: SystemString
Path to the placeholder item.
Return Value
Type:
BooleanTrue if the item is a placeholder. False - otherwise.
ExamplesThe code below is part of 'VirtualFileSystem' C# sample provided with the SDK.
if (!PlaceholderItem.IsPlaceholder(userFileSystemPath))
{
PlaceholderItem.ConvertToPlaceholder(userFileSystemPath, false);
LogMessage("Converted to placeholder", userFileSystemPath);
}
See Also