PSCodeMethod(String, MethodInfo) Constructor

Definition

Initializes a new instance of the PSCodeMethod class.

C++
public:
 PSCodeMethod(System::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.

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0