AttachedShadowElementContext.GetResource<T>(String) Method
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
C#
public T GetResource<T> (string key);
member this.GetResource : string -> 'T
Public Function GetResource(Of T) (key As String) As T
- T
The type of the resource being retrieved.
- key
- String
Key to use to lookup the resource.
T
The resource if available, otherwise default value.
Producto | Versiones |
---|---|
Windows Community Toolkit | 7.1.0 |