AttachedShadowElementContext.GetResource<T>(String) 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.
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
The resource if available, otherwise default value.