C# Class Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletBase

Inheritance: System.Management.Automation.PSCmdlet
Show file Open project: AzureRT/azure-sdk-tools

Public Methods

Method Description
ExecuteCmdlet ( ) : void
GetDynamicParameters ( ) : object

Protected Methods

Method Description
BeginProcessing ( ) : void

Cmdlet begin process

ConfirmAction ( bool force, string actionMessage, string processMessage, string target, System.Action action ) : void

Asks for confirmation before executing the action.

ConstructPSObject ( string typeName ) : System.Management.Automation.PSObject
CurrentPath ( ) : string
EndProcessing ( ) : void

End processing

IsVerbose ( ) : bool
ProcessRecord ( ) : void
SafeWriteOutputPSObject ( string typeName ) : void
WriteDebugWithTimestamp ( string message ) : void
WriteExceptionError ( Exception ex ) : void

Write an error message for a given exception.

WriteVerboseWithTimestamp ( string message ) : void

Method Details

BeginProcessing() protected method

Cmdlet begin process
protected BeginProcessing ( ) : void
return void

ConfirmAction() protected method

Asks for confirmation before executing the action.
protected ConfirmAction ( bool force, string actionMessage, string processMessage, string target, System.Action action ) : void
force bool Do not ask for confirmation
actionMessage string Message to describe the action
processMessage string Message to prompt after the active is performed.
target string The target name.
action System.Action The action code
return void

ConstructPSObject() protected method

protected ConstructPSObject ( string typeName ) : System.Management.Automation.PSObject
typeName string
return System.Management.Automation.PSObject

CurrentPath() protected method

protected CurrentPath ( ) : string
return string

EndProcessing() protected method

End processing
protected EndProcessing ( ) : void
return void

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void

GetDynamicParameters() public method

public GetDynamicParameters ( ) : object
return object

IsVerbose() protected method

protected IsVerbose ( ) : bool
return bool

ProcessRecord() protected method

protected ProcessRecord ( ) : void
return void

SafeWriteOutputPSObject() protected method

protected SafeWriteOutputPSObject ( string typeName ) : void
typeName string
return void

WriteDebugWithTimestamp() protected method

protected WriteDebugWithTimestamp ( string message ) : void
message string
return void

WriteExceptionError() protected method

Write an error message for a given exception.
protected WriteExceptionError ( Exception ex ) : void
ex System.Exception The exception resulting from the error.
return void

WriteVerboseWithTimestamp() protected method

protected WriteVerboseWithTimestamp ( string message ) : void
message string
return void