Edit

Share via


AttachedShadowElementContext.RemoveResource<T>(String) Method

Definition

Removes an existing resource with the specified key and type

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

Type Parameters

T

The type of the resource being removed.

Parameters

key
String

Key to use to lookup the resource.

Returns

T

The resource that was removed, if any

Applies to