---
title: "protocolMetadata(definition:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwconnection/contentcontext/protocolmetadata(definition:)"
---

# protocolMetadata(definition:)

Retreives the metadata associated with a specific protocol.

## Declaration

```swift
func protocolMetadata(definition: NWProtocolDefinition) -> NWProtocolMetadata?
```

## See Also

### Inspecting Receive Contexts

- [isFinal](network/nwconnection/contentcontext/isfinal.md)
