---
title: "validateTag(_:)"
framework: virtualization
role: symbol
role_heading: Type Method
path: "virtualization/vzvirtiofilesystemdeviceconfiguration/validatetag(_:)"
---

# validateTag(_:)

Checks to see whether a Virtio tag is valid.

## Declaration

```swift
class func validateTag(_ tag: String) throws
```

## Parameters

- `tag`: The tag to validate.

## Mentioned in

Running Intel Binaries in Linux VMs

## Discussion

Discussion The tag can’t be empty and must be fewer than 36 bytes when encoded in UTF-8.
