## EncodeTypes.TryParse method

Converts the string representation of a BaseEncodeType to its instance. A return value indicates whether the conversion succeeded or failed.

```csharp
public static bool TryParse(string parsingType, out BaseEncodeType result)
```

| Parameter | Type | Description |
| --- | --- | --- |
| parsingType | String | A string in the format as "Index:-1; Name:None" to convert. |
| result | BaseEncodeType& | An actual SingleEncodeType returns, when conversion has completed successfully; |

### Return Value

**true** if s was converted successfully; otherwise, **false**.

### See Also

* class [BaseEncodeType](../../baseencodetype/)
* class [EncodeTypes](../)
* namespace [Aspose.BarCode.Generation](../../../aspose.barcode.generation/)
* assembly [Aspose.BarCode](../../../)


