Partager via


AsymmetricAlgorithm.Create Method (String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates an instance of the specified implementation of an asymmetric algorithm.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib.Extensions (in mscorlib.Extensions.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    algName As String _
) As AsymmetricAlgorithm
public static AsymmetricAlgorithm Create(
    string algName
)

Parameters

  • algName
    Type: System.String
    The asymmetric algorithm implementation to use. The following table shows the valid values for the algName parameter and the algorithms they map to.

    Parameter value

    Implements

    System.Security.Cryptography.AsymmetricAlgorithm

    AsymmetricAlgorithm

    RSA

    RSA

    System.Security.Cryptography.RSA

    RSA

Return Value

Type: System.Security.Cryptography.AsymmetricAlgorithm
A new instance of the specified asymmetric algorithm implementation.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.