---
title: networkServiceType
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/stream/propertykey/networkservicetype
---

# networkServiceType

The type of service for the stream. Providing the service type allows the system to properly handle certain attributes of the stream, including routing and suspension behavior. Most streams do not need to set this property. See Stream Service Types for a list of possible values.

## Declaration

```swift
static let networkServiceType: Stream.PropertyKey
```

## See Also

### Type Properties

- [dataWrittenToMemoryStreamKey](foundation/stream/propertykey/datawrittentomemorystreamkey.md)
- [fileCurrentOffsetKey](foundation/stream/propertykey/filecurrentoffsetkey.md)
- [socketSecurityLevelKey](foundation/stream/propertykey/socketsecuritylevelkey.md)
- [socksProxyConfigurationKey](foundation/stream/propertykey/socksproxyconfigurationkey.md)
