Share via


UnregisterPackageSource.Unregister Method

This element is introduced in Windows PowerShell 5.0.

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

Usage

'Usage
Dim instance As UnregisterPackageSource
Dim source As PackageSource
Dim returnValue As Boolean

returnValue = instance.Unregister(source)

Syntax

'Declaration
Public Function Unregister ( _
    source As PackageSource _
) As Boolean
public bool Unregister (
    PackageSource source
)
public:
bool Unregister (
    PackageSource^ source
)
public boolean Unregister (
    PackageSource source
)
public function Unregister (
    source : PackageSource
) : boolean

Parameters

  • source

Return Value

Returns Boolean.

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

UnregisterPackageSource Class
UnregisterPackageSource Members
Microsoft.PowerShell.OneGet.CmdLets Namespace