Click to Rate and Give Feedback

  Switch on low bandwidth view
WhereObjectCommand Class
The Where-Object cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in system.management.automation.dll)
Dim instance As WhereObjectCommand
Visual Basic
<CmdletAttribute("Where", "Object")> _
Public NotInheritable Class WhereObjectCommand
    Inherits PSCmdlet
C#
[CmdletAttribute("Where", "Object")] 
public sealed class WhereObjectCommand : PSCmdlet
C++
[CmdletAttribute(L"Where", L"Object")] 
public ref class WhereObjectCommand sealed : public PSCmdlet
J#
/** @attribute CmdletAttribute("Where", "Object") */ 
public final class WhereObjectCommand extends PSCmdlet
JScript
CmdletAttribute("Where", "Object") 
public final class WhereObjectCommand extends PSCmdlet

This cmdlet creates a filter that controls which objects will be passed along a pipeline. For more information about this cmdlet, see Where-Object in the Microsoft TechNet library.

For Help at the command line, type:

get-help where-object


System.Object
   System.Management.Automation.Internal.InternalCommand
     System.Management.Automation.Cmdlet
       System.Management.Automation.PSCmdlet
        Microsoft.PowerShell.Commands.WhereObjectCommand
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker