Compartir a través de


IVsStrongNameKeys.CreateNewKeyNoUI Method

Creates a new key to be used for signing, exporting to a file, and creating a new key container, without using the UI.

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

Syntax

'Declaration
Function CreateNewKeyNoUI ( _
    szFile As String, _
    szPassword As String _
) As Integer
int CreateNewKeyNoUI(
    string szFile,
    string szPassword
)
int CreateNewKeyNoUI(
    [InAttribute] String^ szFile, 
    [InAttribute] String^ szPassword
)
abstract CreateNewKeyNoUI : 
        szFile:string * 
        szPassword:string -> int
function CreateNewKeyNoUI(
    szFile : String, 
    szPassword : String
) : int

Parameters

  • szFile
    Type: String

    [in] The file in which to store the encryption key.

  • szPassword
    Type: String

    [in] The password for the key being generated.

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