Compartir a través de


IVsStrongNameKeys.ImportKeyFromPFX Method

Imports a PFX-encrypted file to a key container.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function ImportKeyFromPFX ( _
    szFile As String, _
    <OutAttribute> ByRef pbstrContainerName As String _
) As Integer
int ImportKeyFromPFX(
    string szFile,
    out string pbstrContainerName
)
int ImportKeyFromPFX(
    [InAttribute] String^ szFile, 
    [OutAttribute] String^% pbstrContainerName
)
abstract ImportKeyFromPFX : 
        szFile:string * 
        pbstrContainerName:string byref -> int
function ImportKeyFromPFX(
    szFile : String, 
    pbstrContainerName : String
) : int

Parameters

  • szFile
    Type: String

    [in] The PFX-encrypted file to import.

  • pbstrContainerName
    Type: String%

    [out] The key container in which the PFX-encrypted file was imported.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsStrongNameKeys Interface

Microsoft.VisualStudio.Shell.Interop Namespace