SafeBuffer.ReleasePointer Method ()

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Releases a pointer that was obtained by the AcquirePointer method.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public void ReleasePointer()

Exception Condition

The Initialize method has not been called.

After this method returns, the pointer cannot be used.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top