語言

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
屬性

備註

了解更多關於可打字介面的資訊。

建構函式

名稱 Description
RpcMarshalableAttribute()

指定一個介面,用於 RPC 合約中,用以組織物件,使接收端能呼叫遠端方法,而非序列化物件以傳送資料至遠端端。

屬性

名稱 Description
CallScopedLifetime

會取得一個值,表示該封存物件是否只允許在請求中使用,且接收端只能在回應傳送前呼叫。

適用於