# ReturnValueProxyAttribute

Package: [Microsoft.Orleans.Serialization.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Serialization.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.Abstractions/Annotations.cs#L628)

```csharp
public sealed class ReturnValueProxyAttribute : Attribute
```

Applied to invokable base types (see TaskRequest) to indicate that instances of derived types should be returned directly from generated proxy methods rather than being passed to the runtime for invocation. This is used to support calling patterns other than request-response, such as streaming.

## Constructors

- [ReturnValueProxyAttribute(string)](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.invocation.returnvalueproxyattribute/constructors/constructor-string-94b40b68/)

## Properties

- [InitializerMethodName](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.invocation.returnvalueproxyattribute/properties/initializermethodname-05deda16/)
