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

'宣言
Function Dispose As Integer
'使用
Dim instance As IVsDataEnvironment
Dim returnValue As Integer

returnValue = instance.Dispose()
int Dispose()
int Dispose()
function Dispose() : int

Return Value

Type: System.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.

Permissions

See Also

Reference

IVsDataEnvironment Interface

IVsDataEnvironment Members

Microsoft.VisualStudio.Shell.Interop Namespace