NativeActivityMetadata.RequireExtension Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RequireExtension(Type) |
Specifies that the activity requires an extension of the specified type at runtime. |
RequireExtension<T>() |
Specifies that the activity requires an extension of the specified generic type at runtime. |
RequireExtension(Type)
Specifies that the activity requires an extension of the specified type at runtime.
public:
void RequireExtension(Type ^ extensionType);
public void RequireExtension (Type extensionType);
member this.RequireExtension : Type -> unit
Public Sub RequireExtension (extensionType As Type)
Parameters
- extensionType
- Type
The type of the extension.
Remarks
If the host fails to provide an extension of the specified type, validation fails.
Applies to
RequireExtension<T>()
Specifies that the activity requires an extension of the specified generic type at runtime.
public:
generic <typename T>
where T : class void RequireExtension();
public void RequireExtension<T> () where T : class;
member this.RequireExtension : unit -> unit (requires 'T : null)
Public Sub RequireExtension(Of T As Class) ()
Type Parameters
- T
The type of the extension.
Remarks
If the host fails to provide an extension of the specified type, validation fails.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про