ServiceLocatorExtensions.Dispose Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

If the object implements IDisposable then call it.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Utility
Assembly: Microsoft.Practices.EnterpriseLibrary.Common.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Common.Silverlight.dll) Version: 5.0.505.0

Syntax

public static void Dispose(
    this IServiceLocator locator
)
'Declaration
<ExtensionAttribute> _
Public Shared Sub Dispose ( _
    locator As IServiceLocator _
)
[ExtensionAttribute]
public:
static void Dispose(
    IServiceLocator^ locator
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IServiceLocator. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

ServiceLocatorExtensions Class

Microsoft.Practices.EnterpriseLibrary.Common.Utility Namespace