# getDescriptor

inline fun <T : Any> ComponentMetadataContext. getDescriptor(descriptorClass: KClass<T>): T?(source)
inline fun <T : Any> ComponentMetadataContext. getDescriptor(descriptorClass: KClass<T>): T?(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.ComponentMetadataContext.getDescriptor.

#### Since

4.9

#### See also

ComponentMetadataContext.getDescriptor

inline fun <T : Any> ComponentSelection. getDescriptor(descriptorClass: KClass<T>): T?(source)
inline fun <T : Any> ComponentSelection. getDescriptor(descriptorClass: KClass<T>): T?(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.artifacts.ComponentSelection.getDescriptor.

#### Since

5.0

#### See also

ComponentSelection.getDescriptor