Show / Hide Table of Contents

Method Pidl.FromString


Overload

Converts string to ITEMIDLIST and creates new Pidl variable that holds it.

public static Pidl FromString(string s, bool throwIfFailed = false)
Parameters
s  (string)

A file-system path or URL or shell object parsing name (see Pidl.ToShellString) or ":: ITEMIDLIST" (see Pidl.ToHexString). Supports environment variables (see pathname.expand).

throwIfFailed  (bool)

Throw exception if failed.

Returns
Pidl

null if failed.

Exceptions
AuException

Failed, and throwIfFailed is true. Probably invalid s.

Remarks

Calls SHParseDisplayName, except when string is ":: ITEMIDLIST". If ":: ITEMIDLIST", does not check whether the shell object exists.