Share via


GetCimInstanceCommand.Shallow Property

 

Gets and sets the switch parameter Shallow. If the switch is set to True, only the instance of the class identified by Namespace and ClassName will be returned. If the switch is not set, instances of the class and of all of its descendents will be returned (the enumeration will cascade the class inheritance hierarchy).

Namespace:   Microsoft.Management.Infrastructure.CimCmdlets
Assembly:  Microsoft.Management.Infrastructure.CimCmdlets (in Microsoft.Management.Infrastructure.CimCmdlets.dll)

Syntax

[ParameterAttribute(ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ParameterSetName = "ClassNameSessionSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriSessionSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ParameterSetName = "QueryComputerSet")]
[ParameterAttribute(ParameterSetName = "QuerySessionSet")]
public SwitchParameter Shallow { get; set; }
public:
[ParameterAttribute(ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ParameterSetName = "ClassNameSessionSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriSessionSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ParameterSetName = "QueryComputerSet")]
[ParameterAttribute(ParameterSetName = "QuerySessionSet")]
property SwitchParameter Shallow {
    SwitchParameter get();
    void set(SwitchParameter value);
}
[<ParameterAttribute(ParameterSetName = "ClassNameComputerSet")>]
[<ParameterAttribute(ParameterSetName = "ClassNameSessionSet")>]
[<ParameterAttribute(ParameterSetName = "ResourceUriSessionSet")>]
[<ParameterAttribute(ParameterSetName = "ResourceUriComputerSet")>]
[<ParameterAttribute(ParameterSetName = "QueryComputerSet")>]
[<ParameterAttribute(ParameterSetName = "QuerySessionSet")>]
member Shallow : SwitchParameter with get, set
<ParameterAttribute(ParameterSetName := "ClassNameComputerSet")>
<ParameterAttribute(ParameterSetName := "ClassNameSessionSet")>
<ParameterAttribute(ParameterSetName := "ResourceUriSessionSet")>
<ParameterAttribute(ParameterSetName := "ResourceUriComputerSet")>
<ParameterAttribute(ParameterSetName := "QueryComputerSet")>
<ParameterAttribute(ParameterSetName := "QuerySessionSet")>
Public Property Shallow As SwitchParameter

Property Value

Type: System.Management.Automation.SwitchParameter

Returns SwitchParameter.

See Also

GetCimInstanceCommand Class
Microsoft.Management.Infrastructure.CimCmdlets Namespace

Return to top