Edit

Share via


AttachedShadowElementContext.GetResource<T>(String) Method

Definition

Retries a resource with the specified key and type

public T GetResource<T> (string key);
member this.GetResource : string -> 'T
Public Function GetResource(Of T) (key As String) As T

Type Parameters

T

The type of the resource being retrieved.

Parameters

key
String

Key to use to lookup the resource.

Returns

T

The resource if available, otherwise default value.

Applies to