---
title: "CFPlugInRegisterFactoryFunctionByName(_:_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfpluginregisterfactoryfunctionbyname(_:_:_:)"
---

# CFPlugInRegisterFactoryFunctionByName(_:_:_:)

Registers a factory function with a CFPlugIn object using the function’s name instead of its UUID.

## Declaration

```swift
func CFPlugInRegisterFactoryFunctionByName(_ factoryUUID: CFUUID!, _ plugIn: CFPlugIn!, _ functionName: CFString!) -> Bool
```

## Parameters

- `factoryUUID`: The CFUUID object representing the factory function to register.
- `plugIn`: The plug-in containing functionName.
- `functionName`: The name of the factory function 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)
- [CFPlugInRegisterPlugInType(_:_:)](corefoundation/cfpluginregisterplugintype(_:_:).md)
- [CFPlugInUnregisterFactory(_:)](corefoundation/cfpluginunregisterfactory(_:).md)
- [CFPlugInUnregisterPlugInType(_:_:)](corefoundation/cfpluginunregisterplugintype(_:_:).md)
