PropertyCmdletProviderIntrinsics.Remove PropertyCmdletProviderIntrinsics.Remove PropertyCmdletProviderIntrinsics.Remove Method

Definition

Overloads

Remove(String, String) Remove(String, String) Remove(String, String)

Removes a property from the specified item(s)

Remove(String[], String, Boolean, Boolean) Remove(String[], String, Boolean, Boolean) Remove(String[], String, Boolean, Boolean)

Removes a property from the specified item(s)

Remove(String, String) Remove(String, String) Remove(String, String)

Removes a property from the specified item(s)

public void Remove (string path, string propertyName);
member this.Remove : string * string -> unit
Public Sub Remove (path As String, propertyName As String)
Parameters
path
String String String

The path to the item(s) on which the property should be removed.

propertyName
String String String

The property name that should be removed.

Exceptions

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

Remove(String[], String, Boolean, Boolean) Remove(String[], String, Boolean, Boolean) Remove(String[], String, Boolean, Boolean)

Removes a property from the specified item(s)

public void Remove (string[] path, string propertyName, bool force, bool literalPath);
member this.Remove : string[] * string * bool * bool -> unit
Public Sub Remove (path As String(), propertyName As String, force As Boolean, literalPath As Boolean)
Parameters
path
String[]

The path(s) to the item(s) on which the property should be removed.

propertyName
String String String

The property name that should be removed.

force
Boolean Boolean Boolean

Passed on to providers to force operations.

literalPath
Boolean Boolean Boolean

If true, globbing is not done on paths.

Exceptions

If the path refers to a provider that could not be found.

If the path refers to a drive that could not be found.

If path does not contain glob characters and could not be found.

If the provider that the path refers to does not support this operation.

Applies to