HeaderHandler 委托

定义

表示将在反序列化期间处理流上的标头的方法。Represents the method that will handle processing of headers on the stream during deserialization.

public delegate System::Object ^ HeaderHandler(cli::array <Header ^> ^ headers);
[System.Runtime.InteropServices.ComVisible(true)]
public delegate object HeaderHandler(Header[] headers);
type HeaderHandler = delegate of Header[] -> obj
Public Delegate Function HeaderHandler(headers As Header()) As Object 

参数

headers
Header[]

事件的标头。The headers of the event.

返回值

Object

一个 Object,它传达有关远程函数调用的信息。A Object that conveys information about a remote function call.

继承
HeaderHandler
属性

注解

Header对象用于传达有关远程函数调用的信息 (例如, 事务 ID 或方法签名)。Header objects are used to convey information about a remote function call (for example, transaction ID or a method signature).

当您创建HeaderHandler时, 您需要标识将处理该事件的方法。When you create a HeaderHandler, you identify the method that will handle the event. 有关概述, 请参阅处理和引发事件For an overview, see Handling and Raising Events.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于