<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtioFileSystemDeviceConfiguration/validateTag(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtioFileSystemDeviceConfiguration(cm)validateTag:error:"
  },
  "title" : "validateTag(_:)"
}
-->

# validateTag(_:)

Checks to see whether a Virtio tag is valid.

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

## Parameters

`tag`

The tag to validate.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)