Compartir a través de


IVsDataEnvironment.Dispose Method

Provides a method for implementers to execute code before the interface is released.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function Dispose As Integer
int Dispose()
int Dispose()
abstract Dispose : unit -> int
function Dispose() : int

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Implementers can use the Dispose method to perform any actions required before the interface is released. Note that the Dispose method does not release the interface—the client must explicitly call Release to release the interface.

.NET Framework Security

See Also

Reference

IVsDataEnvironment Interface

Microsoft.VisualStudio.Shell.Interop Namespace