X509Certificate.GetIssuerName Method
.NET Framework 3.0
NOTE: This method is now obsolete.
Returns the name of the certification authority that issued the X.509v3 certificate. Namespace: System.Security.Cryptography.X509CertificatesAssembly: mscorlib (in mscorlib.dll)
[ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public virtual string GetIssuerName ()
/** @attribute ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202") */
public String GetIssuerName ()
ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202") public function GetIssuerName () : String
Not applicable.
Return Value
The name of the certification authority that issued the X.509 certificate.The following example uses the GetIssuerName method to return the certificate issuer's name and displays it to the console.
using System; using System.Security.Cryptography.X509Certificates; public class X509 { public static void Main() { // The path to the certificate. string Certificate = "Certificate.cer"; // Load the certificate into an X509Certificate object. X509Certificate cert = X509Certificate.CreateFromCertFile(Certificate); // Get the value. string results = cert.GetIssuerName(); // Display the value to the console. Console.WriteLine(results); } }
import System.*;
import System.Security.Cryptography.X509Certificates.*;
public class X509
{
public static void main(String[] args)
{
// The path to the certificate.
String certificate = "Certificate.cer";
// Load the certificate into an X509Certificate object.
X509Certificate cert = X509Certificate.CreateFromCertFile(certificate);
// Get the value.
String results = cert.GetIssuerName();
// Display the value to the console.
Console.WriteLine(results);
} //main
} //X509
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.