Share via


GetCimInstanceCommand.Namespace Property

 

Gets and sets the Namespace parameter, which identifies the namespace in which the class, indicated by ClassName, is registered. If this property isn't set, the default namespace is root\cimv2.

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

Syntax

[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QueryComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QuerySessionSet")]
public string Namespace { get; set; }
public:
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QueryComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QuerySessionSet")]
property String^ Namespace {
    String^ get();
    void set(String^ value);
}
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameSessionSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriSessionSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QueryComputerSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QuerySessionSet")>]
member Namespace : string with get, set
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ClassNameComputerSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ClassNameSessionSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ResourceUriComputerSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ResourceUriSessionSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "QueryComputerSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "QuerySessionSet")>
Public Property Namespace As String

Property Value

Type: System.String

Returns String.

See Also

GetCimInstanceCommand Class
Microsoft.Management.Infrastructure.CimCmdlets Namespace

Return to top