Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Marshal.ZeroFreeBSTR(IntPtr) Method
Definition
- Namespace:
- System.Runtime.InteropServices
- Assemblies:
- mscorlib.dll, System.Runtime.InteropServices.dll
- Assemblies:
- netstandard.dll, System.Runtime.InteropServices.dll
- Assembly:
- System.Runtime.InteropServices.dll
- Assembly:
- mscorlib.dll
- Assembly:
- netstandard.dll
- Source:
- Marshal.cs
- Source:
- Marshal.cs
- Source:
- Marshal.cs
- Source:
- Marshal.cs
- Source:
- Marshal.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Frees a BSTR pointer that was allocated using the SecureStringToBSTR(SecureString) method.
public:
static void ZeroFreeBSTR(IntPtr s);
[System.Security.SecurityCritical]
public static void ZeroFreeBSTR(IntPtr s);
public static void ZeroFreeBSTR(IntPtr s);
[<System.Security.SecurityCritical>]
static member ZeroFreeBSTR : nativeint -> unit
static member ZeroFreeBSTR : nativeint -> unit
Public Shared Sub ZeroFreeBSTR (s As IntPtr)
Parameters
- s
-
IntPtr
nativeint
The address of the BSTR to free.
- Attributes
Remarks
The ZeroFreeBSTR method first sets the contents of the BSTR to zero, and then frees the BSTR.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
