EncryptionUtils.GetCertificateFromStore Method (String, StoreLocation)
Gets the certificate from store.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Public Shared Function GetCertificateFromStore ( _
certificateThumbprint As String, _
location As StoreLocation _
) As X509Certificate2
'Usage
Dim certificateThumbprint As String
Dim location As StoreLocation
Dim returnValue As X509Certificate2
returnValue = EncryptionUtils.GetCertificateFromStore(certificateThumbprint, _
location)
public static X509Certificate2 GetCertificateFromStore(
string certificateThumbprint,
StoreLocation location
)
public:
static X509Certificate2^ GetCertificateFromStore(
String^ certificateThumbprint,
StoreLocation location
)
static member GetCertificateFromStore :
certificateThumbprint:string *
location:StoreLocation -> X509Certificate2
public static function GetCertificateFromStore(
certificateThumbprint : String,
location : StoreLocation
) : X509Certificate2
Parameters
- certificateThumbprint
Type: System.String
The certificate thumbprint.
- location
Type: System.Security.Cryptography.X509Certificates.StoreLocation
The location.
Return Value
Type: System.Security.Cryptography.X509Certificates.X509Certificate2
The X509 certificate.