GetWmiObjectCommand.Namespace Property

Gets and sets the value of the Namespace parameter of the Get-WmiObject cmdlet.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in microsoft.powershell.commands.management.dll)

Usage

Syntax

'Declaration
<ParameterAttribute> _
Public Property Namespace As String
[ParameterAttribute] 
public string Namespace { get; set; }
[ParameterAttribute] 
public:
property String^ Namespace {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Namespace ()

/** @property */
public void set_Namespace (String value)
public function get Namespace () : String

public function set Namespace (value : String)

Property Value

The namespace where the WMI class can be found. When used with the Class parameter, this parameter specifies the WMI repository namespace where the referenced WMI class is located. When used with the List parameter, it specifies the namespace from which to gather WMI class information.

Remarks

This topic is included in this SDK for completeness only. For more information about the Get-WmiObject cmdlet, use the following command to access online Help:

PS>get-help get-wmiobject

Thread Safety

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

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also

Reference

GetWmiObjectCommand Class
GetWmiObjectCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell Programmer's Guide
Windows PowerShell SDK