ActivityMetadata.RequireExtension<T> Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Specifies that the activity requires an extension of the specified generic type at runtime.

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public void RequireExtension<T>()
where T : class

Type Parameters


The type of the extension.

If the host fails to provide an extension of the specified type, validation fails.

.NET Framework
Available since 4.0
Return to top