你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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)

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.

CanConvertFrom(Object, Type)
CanConvertTo(Object, Type)
ConvertFrom(Object)

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

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

Applies to