---
title: "set(_:)"
framework: usdkit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdprim/referencecollection/set(_:)"
---

# set(_:)

Replaces all reference arcs with the specified list.

## Declaration

```swift
func set(_ references: [USDPrim.Reference]) throws
```

## Parameters

- `references`: The new list of references.

## Discussion

Discussion note: An error if the references cannot be set.
