语言

RpcMarshalableAttribute 类

定义

指定 RPC 协定中用于封送对象的接口,以便接收方可以对其调用远程方法,而不是序列化对象以将其数据发送到远程端。

[System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)]
public class RpcMarshalableAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=false, Inherited=false)>]
type RpcMarshalableAttribute = class
    inherit Attribute
Public Class RpcMarshalableAttribute
Inherits Attribute
继承
RpcMarshalableAttribute
属性

注解

详细了解可封送接口。

构造函数

名称 说明
RpcMarshalableAttribute()

指定 RPC 协定中用于封送对象的接口,以便接收方可以对其调用远程方法,而不是序列化对象以将其数据发送到远程端。

属性

名称 说明
CallScopedLifetime

获取一个值,该值指示封送对象是否仅在请求中允许,并且只能在发送响应之前由接收方调用。

适用于