Share via


NewCimInstanceCommand.Namespace Property

 

Gets and sets the Namespace parameter, which specifies the namespace of the class for the new instance. 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 = "ClassNameSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")]
public string Namespace { get; set; }
public:
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriSessionSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")]
property String^ Namespace {
    String^ get();
    void set(String^ value);
}
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameSessionSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriSessionSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")>]
member Namespace : string with get, set
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ClassNameSessionSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ClassNameComputerSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ResourceUriSessionSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ResourceUriComputerSet")>
Public Property Namespace As String

Property Value

Type: System.String

Returns String.

See Also

NewCimInstanceCommand Class
Microsoft.Management.Infrastructure.CimCmdlets Namespace

Return to top