Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Create a new key to be used for signing, exporting to a file, and creating a new key container, for the specified name.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function CreateNewKeyWithName ( _
szFile As String, _
szPassword As String, _
szSubjectName As String _
) As Integer
int CreateNewKeyWithName(
string szFile,
string szPassword,
string szSubjectName
)
int CreateNewKeyWithName(
[InAttribute] String^ szFile,
[InAttribute] String^ szPassword,
[InAttribute] String^ szSubjectName
)
abstract CreateNewKeyWithName :
szFile:string *
szPassword:string *
szSubjectName:string -> int
function CreateNewKeyWithName(
szFile : String,
szPassword : String,
szSubjectName : 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.
szSubjectName
Type: String[in] The name that goes after “CN=” in the certificate name.
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.