AssemblyNameMatchingStrategy Enum
Specifies how strictly a string assembly name must match when determining trust.
public enum AssemblyNameMatchingStrategy
Fields
| Name | Description |
|---|---|
| FullName | Matches the full assembly name including version and public key token. This is the most secure option and is the default. |
| NameAndPublicKey | Matches the assembly name and public key token, allowing any version. Useful when you want to trust an assembly family regardless of version updates. |
| NameOnly | Matches only the simple assembly name. This is insecure and vulnerable to assembly spoofing, so only use in controlled, non-production scenarios. |