PowerShell中的方法Method与属性中的Property一样,默认的Method方法也是从基类继承下来的方法。我们也不能为PowerShell对象创建Method方法,图为Process对象Method方法。
在对象添加任何的Method方法都会出错,提示不能为PowerShell对象添加Method方法。图为添加Method方法后出错的提示。
PowerShell中的方法Method与属性中的Property一样,默认的Method方法也是从基类继承下来的方法。我们也不能为PowerShell对象创建Method方法,图为Process对象Method方法。
在对象添加任何的Method方法都会出错,提示不能为PowerShell对象添加Method方法。图为添加Method方法后出错的提示。