Share via


PowerStateTypeConverter Class

Definition

A PowerShell PSTypeConverter to support converting to an instance of PowerState

public class PowerStateTypeConverter : System.Management.Automation.PSTypeConverter
type PowerStateTypeConverter = class
    inherit PSTypeConverter
Public Class PowerStateTypeConverter
Inherits PSTypeConverter
Inheritance
PowerStateTypeConverter

Constructors

PowerStateTypeConverter()

Methods

CanConvertFrom(Object)

Determines if the converter can convert the sourceValue parameter to the PowerState type.

CanConvertFrom(Object, Type)

Determines if the converter can convert the sourceValue parameter to the destinationType parameter.

CanConvertTo(Object, Type)

Determines if the sourceValue parameter can be converted to the destinationType parameter

ConvertFrom(Object)

Converts the sourceValue parameter into an instance of PowerState

ConvertFrom(Object, Type, IFormatProvider, Boolean)

Converts the sourceValue parameter to the destinationType parameter using formatProvider and ignoreCase

ConvertTo(Object, Type, IFormatProvider, Boolean)

NotImplemented -- this will return null

Applies to