C# Class Microsoft.Tools.WindowsInstaller.PowerShell.Commands.LoggingPolicyCommandBase

Base class for Windows Installer logging cmdlets.
Inheritance: Cmdlet, ILoggingPolicyService
Mostrar archivo Open project: heaths/psmsi

Protected Methods

Method Description
GetPolicy ( ) : string

Gets the logging policy.

RemovePolicy ( ) : void

Removes the logging policy.

SetPolicy ( string value ) : void

Sets the logging policy

WriteEnumValues ( LoggingPolicies modes ) : void

Writes out the LoggingPolicies which are set individually to the pipeline.

Private Methods

Method Description
CreatePolicyKey ( ) : RegistryKey
ILoggingPolicyService ( ) : string
ILoggingPolicyService ( ) : void
ILoggingPolicyService ( string value ) : void
LoggingPolicyCommandBase ( ILoggingPolicyService loggingService = null ) : System

Creates a new instance of the LoggingPolicyCommandBase class using the given ILoggingPolicyService.

OpenPolicyKey ( bool writable = false ) : RegistryKey

Method Details

GetPolicy() protected method

Gets the logging policy.
protected GetPolicy ( ) : string
return string

RemovePolicy() protected method

Removes the logging policy.
protected RemovePolicy ( ) : void
return void

SetPolicy() protected method

Sets the logging policy
protected SetPolicy ( string value ) : void
value string The logging policy to set.
return void

WriteEnumValues() protected method

Writes out the LoggingPolicies which are set individually to the pipeline.
protected WriteEnumValues ( LoggingPolicies modes ) : void
modes LoggingPolicies The which are set.
return void