Share via


CmdletBase.AskPermission Method

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

Usage

'Usage
Dim instance As CmdletBase
Dim permission As String
Dim returnValue As Boolean

returnValue = instance.AskPermission(permission)

Syntax

'Declaration
Public Overridable Function AskPermission ( _
    permission As String _
) As Boolean
public virtual bool AskPermission (
    string permission
)
public:
virtual bool AskPermission (
    String^ permission
)
public boolean AskPermission (
    String permission
)
public function AskPermission (
    permission : String
) : boolean

Parameters

  • permission

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

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