次の方法で共有


EventDataConverter Class

Definition

A PowerShell PSTypeConverter to adapt an EventData object that has been passed. Usually used between modules.

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

Constructors

EventDataConverter()

Methods

CanConvertFrom(Object, Type)
CanConvertFrom(Object)

Verifies that a given object has the required members to convert it to the target type (EventData)

Uses a dynamic type so that it is able to use the simplest code without excessive checking.

CanConvertTo(Object, Type)
ConvertFrom(Object, Type, IFormatProvider, Boolean)
ConvertFrom(Object)

Converts an incoming object to the expected type by treating the incoming object as a dynamic, and coping the expected values.

ConvertTo(Object, Type, IFormatProvider, Boolean)

Applies to