---
title: CFBagGetTypeID()
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cfbaggettypeid()
---

# CFBagGetTypeID()

Returns the type identifier for the CFBag opaque type.

## Declaration

```swift
func CFBagGetTypeID() -> CFTypeID
```

## Return Value

Return Value The type identifier for the CFBag opaque type.

## Discussion

Discussion CFMutableBag objects have the same type identifier as CFBag objects.
