## BaseEncodeType::TryParse(System::String, System::SharedPtr\<BaseEncodeType\>\&) method


Converts the string representation of a [BaseEncodeType](../) to its instance. A return value indicates whether the conversion succeeded or failed.

```cpp
static bool Aspose::BarCode::Generation::BaseEncodeType::TryParse(System::String parsingType, System::SharedPtr<BaseEncodeType> &result)
```


| Parameter | Type | Description |
| --- | --- | --- |
| parsingType | System::String | A string in the format as "Index:-1; Name:None" to convert. |
| result | System::SharedPtr\<BaseEncodeType\>\& | An actual SingleEncodeType returns, when conversion has completed successfully; |

### ReturnValue

**true** if s was converted successfully; otherwise, **false**.
## Remarks



otherwise it returns null.

## See Also

* Class [BaseEncodeType](../)
* Class [BaseEncodeType](../)
* Namespace [Aspose::BarCode::Generation](../../)
* Library [Aspose.BarCode for C++](../../../)
## BaseEncodeType::TryParse(System::String, System::SharedPtr\<SymbologyEncodeType\>\&) method


Converts the string representation of a [BaseEncodeType](../) to its instance. A return value indicates whether the conversion succeeded or failed.

```cpp
static bool Aspose::BarCode::Generation::BaseEncodeType::TryParse(System::String parsingType, System::SharedPtr<SymbologyEncodeType> &result)
```


| Parameter | Type | Description |
| --- | --- | --- |
| parsingType | System::String | A string in the format as "Index:-1; Name:None" to convert. |
| result | System::SharedPtr\<SymbologyEncodeType\>\& | An actual SingleEncodeType returns, when conversion has completed successfully; |

### ReturnValue

**true** if s was converted successfully; otherwise, **false**.
## Remarks



otherwise it returns null.

## See Also

* Class [SymbologyEncodeType](../../symbologyencodetype/)
* Class [BaseEncodeType](../)
* Namespace [Aspose::BarCode::Generation](../../)
* Library [Aspose.BarCode for C++](../../../)
