Compartilhar via


PSMemberInfoCollection<T>.Remove(String) Method

Definition

Removes a member from this collection.

public:
 abstract void Remove(System::String ^ name);
public:
 abstract void Remove(Platform::String ^ name);
 abstract void Remove(std::wstring const & name);
public abstract void Remove (string name);
abstract member Remove : string -> unit
Public MustOverride Sub Remove (name As String)

Parameters

name
String

Name of the member to be removed.

Exceptions

When: removing a member from an PSMemberSet from the type configuration file removing a member with a reserved member name or trying to remove a member with a type not compatible with this collection

For invalid arguments.

Applies to