# IO.TryGetIoId examples

Examples for [TryGetIoId](https://developer.rhino3d.com/api/gh2/type/grasshopperio.io/trygetioid.md) in GrasshopperIO.IO.

## C#

```cs
using GrasshopperIO;

// As an extension method
bool result = type.TryGetIoId(out Guid id, inherit);

// As a static method
result = IO.TryGetIoId(type, out id, inherit);
```

## Python

```python
import clr
clr.AddReference('GrasshopperIO')
import GrasshopperIO
clr.ImportExtensions(GrasshopperIO)

# As an extension method
result, id = type.TryGetIoId(inherit)

# As a static method
result, id = GrasshopperIO.IO.TryGetIoId(type, inherit)
```
