<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.2.25163.2" />

SiteMembershipCondition

Determines whether an assembly belongs to a code group by testing the site from which it originated. This class cannot be inherited.
public string Site { get; set; }

Gets or sets the site for which the membership condition tests.

public SiteMembershipCondition(string site)

Initializes a new instance of the SiteMembershipCondition class with name of the site that determines membership.

public bool Check(Evidence evidence)

Determines whether the specified evidence satisfies the membership condition.

Creates an equivalent copy of the membership condition.

public void FromXml(SecurityElement e)

Reconstructs a security object with a specified state from an XML encoding.

public void FromXml(SecurityElement e, PolicyLevel level)

Reconstructs a security object with a specified state from an XML encoding.

Creates an XML encoding of the security object and its current state.

Creates an XML encoding of the security object and its current state with the specified PolicyLevel.