# WebMethodAttribute constructor

Kind: Constructor  
Namespace: `Sisk.JsonRPC.Annotations`  
Assembly: `Sisk.JsonRPC.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.JsonRPC.Annotations.WebMethodAttribute.-ctor.html

## WebMethodAttribute() {#Sisk_JsonRPC_Annotations_WebMethodAttribute__ctor}

Creates an new [WebMethodAttribute](https://docs.sisk-framework.org/api/Sisk.JsonRPC.Annotations.WebMethodAttribute.md) with no parameters.

```csharp
public WebMethodAttribute()
```

## WebMethodAttribute(string) {#Sisk_JsonRPC_Annotations_WebMethodAttribute__ctor_System_String_}

Creates an new [WebMethodAttribute](https://docs.sisk-framework.org/api/Sisk.JsonRPC.Annotations.WebMethodAttribute.md) with given
parameters.

```csharp
public WebMethodAttribute(string methodName)
```

### Parameters

`methodName` [string](https://learn.microsoft.com/dotnet/api/system.string)

The method name.
