<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_network_copy_serialization(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@F@vmnet_network_copy_serialization"
  },
  "title" : "vmnet_network_copy_serialization(_:_:)"
}
-->

# vmnet_network_copy_serialization(_:_:)

Serializes a vmnet network to an XPC object.

```
func vmnet_network_copy_serialization(_ network: vmnet_network_ref, _ status: UnsafeMutablePointer<vmnet_return_t>?) -> xpc_object_t?
```

## Parameters

`network`

The network object to be copy serialized.

`status`

Optional output parameter, returns status.

## Return Value

Serialized copy of network in `xpc_object_t`, `NULL` otherwise. Optionally, `status` will contain the error code.

## Discussion

Use `vmnet_network_create_with_serialization` to create a new network object from such an XPC object.

---

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)