SafeIUnknown Class

Resource management class intended to release native interfaces, such as those returned from Marshal.GetIUnknownForObject or Marshal.GetIDispatchForObject.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Public Class SafeIUnknown _
    Inherits SafeHandle
‘사용 방법
Dim instance As SafeIUnknown
public class SafeIUnknown : SafeHandle
public ref class SafeIUnknown : public SafeHandle
type SafeIUnknown =  
    class
        inherit SafeHandle
    end
public class SafeIUnknown extends SafeHandle

Inheritance Hierarchy

System.Object
  System.Runtime.ConstrainedExecution.CriticalFinalizerObject
    System.Runtime.InteropServices.SafeHandle
      Microsoft.VisualStudio.PlatformUI.SafeIUnknown

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SafeIUnknown Members

Microsoft.VisualStudio.PlatformUI Namespace