X509Certificate.GetName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This method has been deprecated. Please use the Subject property instead. http://go.microsoft.com/fwlink/?linkid=14202
Caution
This method has been deprecated. Please use the Subject property instead. https://go.microsoft.com/fwlink/?linkid=14202
Returns the name of the principal to which the certificate was issued.
public:
virtual System::String ^ GetName();
public virtual string GetName();
[System.Obsolete("This method has been deprecated. Please use the Subject property instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual string GetName();
[System.Obsolete("This method has been deprecated. Please use the Subject property instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public virtual string GetName();
abstract member GetName : unit -> string
override this.GetName : unit -> string
[<System.Obsolete("This method has been deprecated. Please use the Subject property instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member GetName : unit -> string
override this.GetName : unit -> string
[<System.Obsolete("This method has been deprecated. Please use the Subject property instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member GetName : unit -> string
override this.GetName : unit -> string
Public Overridable Function GetName () As String
Returns
The name of the principal to which the certificate was issued.
- Attributes
Exceptions
The certificate context is invalid.