<PackageReference Include="System.Windows.Extensions" Version="10.0.0-preview.4.25258.110" />

XamlAccessLevel

public class XamlAccessLevel
Defines access control to assemblies and types for purposes of XAML loading.
using System.Reflection; using System.Runtime.CompilerServices; namespace System.Xaml.Permissions { [NullableContext(1)] [Nullable(0)] public class XamlAccessLevel { public AssemblyName AssemblyAccessToAssemblyName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } } [Nullable(2)] public string PrivateAccessToTypeName { [NullableContext(2)] get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } } internal XamlAccessLevel() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } public static XamlAccessLevel AssemblyAccessTo(Assembly assembly) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } public static XamlAccessLevel AssemblyAccessTo(AssemblyName assemblyName) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } public static XamlAccessLevel PrivateAccessTo(string assemblyQualifiedTypeName) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } public static XamlAccessLevel PrivateAccessTo(Type type) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } } }