Partager via


ExpansionFunction.ReleaseFunction Method

Frees any allocations your ExpansionFunction class may have made.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function ReleaseFunction As Integer
public virtual int ReleaseFunction()
public:
virtual int ReleaseFunction()
abstract ReleaseFunction : unit -> int  
override ReleaseFunction : unit -> int
public function ReleaseFunction() : int

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsExpansionFunction.ReleaseFunction()

Remarks

This method is an implementation of the ReleaseFunction method on the IVsExpansionFunction interface.

The base method sets the internal reference to the ExpansionProvider to null and returns S_OK.

.NET Framework Security

See Also

Reference

ExpansionFunction Class

Microsoft.VisualStudio.Package Namespace