---
title: serviceName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsxpcconnection/servicename
---

# serviceName

The name of the XPC service that this connection was configured to connect to.

## Declaration

```swift
var serviceName: String? { get }
```

## See Also

### Managing the connection interface

- [endpoint](foundation/nsxpcconnection/endpoint.md)
- [exportedInterface](foundation/nsxpcconnection/exportedinterface.md)
- [exportedObject](foundation/nsxpcconnection/exportedobject.md)
- [remoteObjectInterface](foundation/nsxpcconnection/remoteobjectinterface.md)
- [remoteObjectProxy](foundation/nsxpcconnection/remoteobjectproxy.md)
