NativeMethods.GlobalFree Method
Frees the specified global memory object and invalidates its handle.
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function GlobalFree ( _
handle As HandleRef _
) As IntPtr
'Usage
Dim handle As HandleRef
Dim returnValue As IntPtr
returnValue = NativeMethods.GlobalFree(handle)
public static IntPtr GlobalFree(
HandleRef handle
)
public:
static IntPtr GlobalFree(
HandleRef handle
)
public static function GlobalFree(
handle : HandleRef
) : IntPtr
static member GlobalFree :
handle:HandleRef -> IntPtr
Parameters
- handle
Type: System.Runtime.InteropServices.HandleRef
Handle to the global memory object
Return Value
Type: System.IntPtr
Returns null if the method succeeds; otherwise, the return value is equal to a handle to the global memory object.
.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.