#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Attributes](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Attributes 'Abblix\.Oidc\.Server\.Mvc\.Attributes')

## FromQueryOrFormAttribute Class

An attribute that specifies binding from either the query string or the form data\.

```csharp
public class FromQueryOrFormAttribute : Microsoft.AspNetCore.Mvc.BindAttribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → [System\.Attribute](https://learn.microsoft.com/en-us/dotnet/api/system.attribute 'System\.Attribute') → [Microsoft\.AspNetCore\.Mvc\.BindAttribute](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.bindattribute 'Microsoft\.AspNetCore\.Mvc\.BindAttribute') → FromQueryOrFormAttribute

Implements [Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IBindingSourceMetadata](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.ibindingsourcemetadata 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IBindingSourceMetadata')

### Remarks
This attribute is useful in scenarios where a value can be provided either through the query string or form data\.
It implements [Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IBindingSourceMetadata](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.ibindingsourcemetadata 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IBindingSourceMetadata') and extends [Microsoft\.AspNetCore\.Mvc\.BindAttribute](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.bindattribute 'Microsoft\.AspNetCore\.Mvc\.BindAttribute')\.
### Constructors

## FromQueryOrFormAttribute\(\) Constructor {#Abblix.Oidc.Server.Mvc.Attributes.FromQueryOrFormAttribute.FromQueryOrFormAttribute()}

Initializes a new instance of the [FromQueryOrFormAttribute](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Attributes.FromQueryOrFormAttribute 'Abblix\.Oidc\.Server\.Mvc\.Attributes\.FromQueryOrFormAttribute') class\.

```csharp
public FromQueryOrFormAttribute();
```

### Remarks
By default, the prefix is set to an empty string, indicating no specific prefix for the bound properties\.
### Properties

## FromQueryOrFormAttribute\.BindingSource Property {#Abblix.Oidc.Server.Mvc.Attributes.FromQueryOrFormAttribute.BindingSource}

Gets the binding source for this attribute, combining both Query and Form sources\.

```csharp
public Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get; }
```

Implements [BindingSource](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.ibindingsourcemetadata.bindingsource 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IBindingSourceMetadata\.BindingSource')

#### Property Value
[Microsoft\.AspNetCore\.Mvc\.ModelBinding\.BindingSource](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.bindingsource 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.BindingSource')

### Remarks
Specifies that the binding source is a composite of both Query and Form sources\.
