AttachedShadowElementContext.RemoveAndDisposeResource<T>(String) Method

Definition

Removes an existing resource with the specified key and type, and disposes it

public T RemoveAndDisposeResource<T> (string key) where T : IDisposable;
member this.RemoveAndDisposeResource : string -> 'T (requires 'T :> IDisposable)
Public Function RemoveAndDisposeResource(Of T As IDisposable) (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