https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.signedxml.getpublickey?view=netframework-4.8
SignedXml.GetPublicKey Method (System.Security.Cryptography.Xml) | Microsoft Learn
Returns the public key of a signature.
system securitymethodcryptographyxmlmicrosoft