SecureStringMarshal.SecureStringToGlobalAllocUnicode(SecureString) Metod

Definition

Kopierar innehållet i ett hanterat SecureString objekt till ohanterat minne.

public:
 static IntPtr SecureStringToGlobalAllocUnicode(System::Security::SecureString ^ s);
public static IntPtr SecureStringToGlobalAllocUnicode(System.Security.SecureString s);
static member SecureStringToGlobalAllocUnicode : System.Security.SecureString -> nativeint
Public Shared Function SecureStringToGlobalAllocUnicode (s As SecureString) As IntPtr

Parametrar

s
SecureString

Det hanterade objekt som ska kopieras.

Returer

IntPtr

nativeint

Adressen, i ohanterat minne, där s kopierades, eller 0 om s är ett SecureString objekt vars längd är 0.

Undantag

Parametern s är null.

Det finns inte tillräckligt med minne.

Gäller för