RpcMarshalableAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定 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 |
获取一个值,该值指示封送对象是否仅在请求中允许,并且只能在发送响应之前由接收方调用。 |