PSCodeMethod Constructor

Definition

Initializes a new instance of the PSCodeMethod class.

public PSCodeMethod (string name, System.Reflection.MethodInfo codeReference);
Parameters
name
String

name of the property

codeReference
MethodInfo

this should be a public static method where the first parameter is an PSObject.

Exceptions

for invalid arguments

if the codeReference does not have the right format