# PostbackPropertyAttribute

URL: https://docs.wisej.com/api/wisej.base/general/wisej.base.postbackpropertyattribute

Version: 4.1
Namespace: **Wisej.Base**

Assembly: **Wisej.Framework** (4.1.0.0)

Allows the property to return its value to postback requests.

- C# - VB.NET

```csharp
public class PostbackPropertyAttribute : Attribute
```

```visual
Public Class PostbackPropertyAttribute
    Inherits Attribute
```

## Constructors

### ![Instance member](/img/api/instance.png) PostbackPropertyAttribute()

Initializes the [PostbackPropertyAttribute](/api/wisej.base/general/wisej.base.postbackpropertyattribute) attribute.

### ![Instance member](/img/api/instance.png) PostbackPropertyAttribute(allow)

Initializes the [PostbackPropertyAttribute](/api/wisej.base/general/wisej.base.postbackpropertyattribute) attribute.

| Name | Type | Description | **allow** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | Indicates whether the property is allowed or disallowed to return its value to postback requests. 

## Properties

### ![Instance member](/img/api/instance.png) Allow

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns or sets whether the property is allows to return its value to postback requests.

## Methods

### ![Static member](/img/api/static.png) IsPostbackProperty(property)

Returns true if the property allows postback requests.

| Parameter | Type | Description | **property** | [PropertyDescriptor](https://docs.microsoft.com/dotnet/api/system.componentmodel.propertydescriptor) | Property to check. 

**Returns:**[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) . True if the *property* allows postback requests.
