# DefaultInvokeMethodNameAttribute

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#L84)

```csharp
public sealed class DefaultInvokeMethodNameAttribute : Attribute
```

Applied to proxy base types and to attribute types used on invokable interface methods to specify the base type for the invokable object which represents a method call.

## Constructors

- [DefaultInvokeMethodNameAttribute(Type, string)](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.defaultinvokemethodnameattribute/constructors/constructor-system-type-string-9a44f242/)

## Properties

- [MethodName](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.defaultinvokemethodnameattribute/properties/methodname-953e369e/)
- [ReturnType](/orleans/docs/api/csharp/microsoft.orleans.serialization.abstractions/orleans.defaultinvokemethodnameattribute/properties/returntype-c914caff/)
