Assembly: System.Management.Automation (in System.Management.Automation.dll)
A code method is an extended member that is defined in a CLR language. For more information about code methods as well as other method types used by the extended type system (ETS), see ETS Methods. For more information about ETS, see Windows PowerShell Extended Type System (ETS).
Although it is possible to derive from this class, there is no established scenario for doing this and any attempt to do so might result in unexpected behavior.