# RegisteringDomainObjectDelegateProviderWithAction

class RegisteringDomainObjectDelegateProviderWithAction<C, T>(source)

### Deprecated

Use 'val element = register(name) { }' instead. See the Gradle 9.6 upgrading guide.

Holds the delegate provider for the `registering` property delegate with the purpose of providing specialized implementations for the `provideDelegate` operator based on the static type of the provider.

## Types

Companion
Link copied to clipboard
object Companion

## Functions

provideDelegate
Link copied to clipboard
operator fun RegisteringDomainObjectDelegateProviderWithAction<out ERROR CLASS: Symbol not found for TaskContainer, ERROR CLASS: Symbol not found for Task>.provideDelegate(receiver: Any?, property: KProperty<*>): ERROR CLASS: Cannot infer argument for type parameter K

Registers a task that gets configured with the given action and provides a delegate with the resulting TaskProvider.

operator fun <T : Any, C : ERROR CLASS: Symbol not found for NamedDomainObjectContainer<T>> RegisteringDomainObjectDelegateProviderWithAction<C, T>.provideDelegate(receiver: Any?, property: KProperty<*>): ERROR CLASS: Cannot infer argument for type parameter K

Registers an element and provides a delegate with the resulting NamedDomainObjectProvider.