Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSMemberTypes Enumeration

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the type of members that can be added to a PSObject object or any object that inherits from the PSObject class.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

[FlagsAttribute]
public enum class PSMemberTypes

Member nameDescription
AliasProperty

An alias to another member

All

All member types

CodeMethod

A method defined as a reference to another method

CodeProperty

A property defined as a reference to a method

Dynamic

All dynamic members (where PowerShell cannot know the type of the member)

Event

All events

MemberSet

A set of members

Method

A method from the BaseObject

Methods

All method member types

NoteProperty

A prorperty defined by a Name-Value pair

ParameterizedProperty

A member that acts like a Property that takes parameters. This is not consider to be a property or a method.

Properties

All property member types

Property

A property from the BaseObject

PropertySet

A set of properties

ScriptMethod

A method defined as a script

ScriptProperty

A property defined by script language

Return to top
Show: