Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.