TryGetFeature Method
Queries for an optional feature.
Definition
Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Object? TryGetFeature(
Type featureType
)
Public Function TryGetFeature (
featureType As Type
) As Object
abstract TryGetFeature :
featureType : Type -> Object
override TryGetFeature :
featureType : Type -> Object
Parameters
- Type
- Feature type.
Return Value
ObjectImplements
IOptionalFeatureProvider.TryGetFeature(Type)
Remarks
Features currently supported by TryGetFeature(Type):
- IPlatformSettings
- IActivatableApplicationLifetime