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)

'Usage
Dim instance As ItemNotFoundException

[SerializableAttribute] 
public class ItemNotFoundException : SessionStateException
/** @attribute SerializableAttribute() */ 
public class ItemNotFoundException extends SessionStateException
SerializableAttribute 
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.


System.Object
   System.Exception
     System.SystemException
       System.Management.Automation.RuntimeException
         System.Management.Automation.SessionStateException
          System.Management.Automation.ItemNotFoundException

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


Show:
© 2014 Microsoft