GetCimInstanceCommand.KeyOnly Property
Gets and sets the KeyOnly parameter, which indicates whether only key properties of the retrieved instances should be returned to the client.
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 = "ResourceUriComputerSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriSessionSet")]
public SwitchParameter KeyOnly { get; set; }
public:
[ParameterAttribute(ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ParameterSetName = "ClassNameSessionSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ParameterSetName = "ResourceUriSessionSet")]
property SwitchParameter KeyOnly {
SwitchParameter get();
void set(SwitchParameter value);
}
[<ParameterAttribute(ParameterSetName = "ClassNameComputerSet")>]
[<ParameterAttribute(ParameterSetName = "ClassNameSessionSet")>]
[<ParameterAttribute(ParameterSetName = "ResourceUriComputerSet")>]
[<ParameterAttribute(ParameterSetName = "ResourceUriSessionSet")>]
member KeyOnly : SwitchParameter with get, set
<ParameterAttribute(ParameterSetName := "ClassNameComputerSet")>
<ParameterAttribute(ParameterSetName := "ClassNameSessionSet")>
<ParameterAttribute(ParameterSetName := "ResourceUriComputerSet")>
<ParameterAttribute(ParameterSetName := "ResourceUriSessionSet")>
Public Property KeyOnly As SwitchParameter
Property Value
Type: System.Management.Automation.SwitchParameter
Returns SwitchParameter.
See Also
GetCimInstanceCommand Class
Microsoft.Management.Infrastructure.CimCmdlets Namespace
Return to top