PresentationSource.CurrentSources Property

 

Returns a list of sources.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public static IEnumerable CurrentSources {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Collections.IEnumerable

A list of weak references.

The returned list supports an enumerator over a read-only, thread-safe copy of the list of sources as added with AddSource.

The enumerator skips any dead weak references in the list.

UIPermission

to get sources. Associated enumeration: UIPermissionWindow.AllWindows.

.NET Framework
Available since 3.0
Return to top
Show: