Share via


PackageManagementService.GetTypedInstance Method

Generates an interface to the PackageManagementService instance. This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet
Assembly: Microsoft.OneGet (in Microsoft.OneGet.dll)

Usage

'Usage
Dim instance As PackageManagementService
Dim returnValue As T

returnValue = instance.GetTypedInstance

Syntax

'Declaration
Public Function GetTypedInstance(Of T) As T
public T GetTypedInstance<T> ()
public:
generic<typename T>
T GetTypedInstance ()

GenericParameters

  • T
    A caller-supplied interface type for which to generate an implementation.

Return Value

The PackageManagementService as an instance of the supplied interface type.

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.

Platforms

Target Platforms

See Also

Reference

PackageManagementService Class
PackageManagementService Members
Microsoft.OneGet Namespace