<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIObjectGetProperties(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@F@MIDIObjectGetProperties"
  },
  "title" : "MIDIObjectGetProperties(_:_:_:)"
}
-->

# MIDIObjectGetProperties(_:_:_:)

Returns all properties of an object.

```
func MIDIObjectGetProperties(_ obj: MIDIObjectRef, _ outProperties: UnsafeMutablePointer<Unmanaged<CFPropertyList>?>, _ deep: Bool) -> OSStatus
```

## Parameters

`obj`

The object to query.

`outProperties`

On successful return, the object’s properties.

`deep`

Specify `true` to include the object’s children; for example, a device’s entities, or an entity’s endpoints.

## Return Value

An `OSStatus` result code.

## Discussion

The property list may be a dictionary or an array. Dictionaries map property names (<doc://com.apple.documentation/documentation/CoreFoundation/CFString>) to values, which may be <doc://com.apple.documentation/documentation/CoreFoundation/CFNumber>, <doc://com.apple.documentation/documentation/CoreFoundation/CFString>, or <doc://com.apple.documentation/documentation/CoreFoundation/CFData>. Arrays provide collections of other property list types.

Properties that an object inherits from its owning object aren’t included.

---

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)