---
title: "GS1Element.Validate"
url: "https://reference.aspose.com/barcode/net/aspose.barcode.common/gs1element/validate/"
product: "Aspose.BarCode for .NET API Reference"
description: "GS1Element method. Validates a value for an exact GS1 Application Identifier"
---

## GS1Element.Validate method

Validates a value for an exact GS1 Application Identifier.

```csharp
public static GS1ValidationResult Validate(string applicationIdentifier, string value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| applicationIdentifier | String | Exact Application Identifier. |
| value | String | Value to validate. |

### Return Value

Structured validation result.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | *applicationIdentifier* or *value* is null. |

### See Also

* class [GS1ValidationResult](../../gs1validationresult/)
* class [GS1Element](../)
* namespace [Aspose.BarCode.Common](../../../aspose.barcode.common/)
* assembly [Aspose.BarCode](../../../)


