RpcMarshalableAttribute.CallScopedLifetime Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the marshaled object is only allowed in requests and may only be invoked by the receiver until the response is sent.
public bool CallScopedLifetime { get; init; }
member this.CallScopedLifetime : bool with get, set
Public Property CallScopedLifetime As Boolean
Property Value
Remarks
Objects marshaled via an interface attributed with this property set to true may only be used as RPC method parameters. They will not be allowed as return values from RPC methods.
While the receiver may dispose of the proxy they receive, this disposal will not propagate to the sender, and their originating object will not be disposed of. The original object owner retains ownership of the lifetime of the object after the RPC call.