<PackageReference Include="System.Security.Permissions" Version="8.0.0" />

NetCodeGroup

public sealed class NetCodeGroup : CodeGroup
Grants Web permission to the site from which the assembly was downloaded. This class cannot be inherited.
public static readonly string AbsentOriginScheme

Contains a value used to specify connection access for code with an unknown or unrecognized origin scheme.

public static readonly string AnyOtherOriginScheme

Contains a value used to specify any other unspecified origin scheme.

public NetCodeGroup(IMembershipCondition membershipCondition)

Initializes a new instance of the NetCodeGroup class.

public void AddConnectAccess(string originScheme, CodeConnectAccess connectAccess)

Adds the specified connection access to the current code group.

Gets the connection access information for the current code group.

public void ResetConnectAccess()

Removes all connection access information for the current code group.