---
title: "CFPlugInRegisterPlugInType(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfpluginregisterplugintype(_:_:)"
---

# CFPlugInRegisterPlugInType(_:_:)

Registers a type and its corresponding factory function with a CFPlugIn object.

## Declaration

```swift
func CFPlugInRegisterPlugInType(_ factoryUUID: CFUUID!, _ typeUUID: CFUUID!) -> Bool
```

## Parameters

- `factoryUUID`: The CFUUID object representing the factory function that can create the type being registered.
- `typeUUID`: The UUID type to register.

## Return Value

Return Value true if the factory function was successfully registered, otherwise false.

## Discussion

Discussion This function is used by a plug-in or host when performing dynamic registration.

## See Also

### Registration

- [CFPlugInRegisterFactoryFunction(_:_:)](corefoundation/cfpluginregisterfactoryfunction(_:_:).md)
- [CFPlugInRegisterFactoryFunctionByName(_:_:_:)](corefoundation/cfpluginregisterfactoryfunctionbyname(_:_:_:).md)
- [CFPlugInUnregisterFactory(_:)](corefoundation/cfpluginunregisterfactory(_:).md)
- [CFPlugInUnregisterPlugInType(_:_:)](corefoundation/cfpluginunregisterplugintype(_:_:).md)
