ItemNotFoundException Class

The exception that is thrown when an item cannot be found for a specified path that contains no wildcard characters.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As ItemNotFoundException

public class ItemNotFoundException : SessionStateException
/** @attribute SerializableAttribute() */ 
public class ItemNotFoundException extends SessionStateException
public class ItemNotFoundException extends SessionStateException

This exception can be thrown by methods that supply a path parameter to perform some operation on an item. For example, the ItemCmdletProviderIntrinsics class provides several methods that throw this exception when their path parameter specifies a path that has no wildcards and an item cannot be found.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft