api / org.gradle.kotlin.dsl / org.gradle.api.NamedDomainObjectCollection / getValue

getValue

inline operator fun <T : Any, reified U : T> NamedDomainObjectCollection<T>.getValue(thisRef: Any?, property: KProperty<*>): U

Allows a NamedDomainObjectCollection to be used as a property delegate.

Exceptions

UnknownDomainObjectException - upon property access when there is no such object in the given collection.

See Also

NamedDomainObjectCollection.getByName