C# Class Microsoft.Tools.WindowsInstaller.PowerShell.RecordPropertyAdapter

Adapts row columns as object properties for a Record.
Inheritance: System.Management.Automation.PSPropertyAdapter
Mostrar archivo Open project: heaths/psmsi Class Usage Examples

Public Methods

Method Description
GetOperation ( System.Management.Automation.PSObject obj ) : RowOperation

Gets the operation performed on this Record by a patch or transform for use in code methods.

GetPath ( System.Management.Automation.PSObject obj ) : string

Gets the path to the package that contains this Record for use in code methods.

GetProperties ( object baseObject ) : Collection

Gets a collection of properties for a Record.

GetProperty ( object baseObject, string propertyName ) : System.Management.Automation.PSAdaptedProperty

Gets a property for a Record with the given name.

GetPropertyTypeName ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : string

Gets the native Type name for the property value.

GetPropertyValue ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : object

Gets the property value.

GetQuery ( System.Management.Automation.PSObject obj ) : string

Gets the query string that returned the Record for use in code methods.

GetTypeNameHierarchy ( object baseObject ) : Collection

Adds the table name, if available, to the beginning of the type name hierarchy.

IsGettable ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : bool

Gets whether the property is gettable.

IsSettable ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : bool

Gets whether the property is settable.

SetPropertyValue ( System.Management.Automation.PSAdaptedProperty adaptedProperty, object value ) : void

Sets the property value.

Private Methods

Method Description
EnsurePropertyCache ( Record record ) : PropertySet
GetPropertyValue ( System.Management.Automation.PSAdaptedProperty adaptedProperty, Record record ) : object

Method Details

GetOperation() public static method

Gets the operation performed on this Record by a patch or transform for use in code methods.
public static GetOperation ( System.Management.Automation.PSObject obj ) : RowOperation
obj System.Management.Automation.PSObject The that wraps a .
return RowOperation

GetPath() public static method

Gets the path to the package that contains this Record for use in code methods.
public static GetPath ( System.Management.Automation.PSObject obj ) : string
obj System.Management.Automation.PSObject The that wraps a .
return string

GetProperties() public method

Gets a collection of properties for a Record.
public GetProperties ( object baseObject ) : Collection
baseObject object The to adapt.
return Collection

GetProperty() public method

Gets a property for a Record with the given name.
public GetProperty ( object baseObject, string propertyName ) : System.Management.Automation.PSAdaptedProperty
baseObject object The to adapt.
propertyName string The column name of a .
return System.Management.Automation.PSAdaptedProperty

GetPropertyTypeName() public method

Gets the native Type name for the property value.
The property did not contain enough information to complete this operation.
public GetPropertyTypeName ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : string
adaptedProperty System.Management.Automation.PSAdaptedProperty The property to check.
return string

GetPropertyValue() public method

Gets the property value.
The property did not contain enough information to complete this operation.
public GetPropertyValue ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : object
adaptedProperty System.Management.Automation.PSAdaptedProperty The property to get.
return object

GetQuery() public static method

Gets the query string that returned the Record for use in code methods.
public static GetQuery ( System.Management.Automation.PSObject obj ) : string
obj System.Management.Automation.PSObject The that wraps a .
return string

GetTypeNameHierarchy() public method

Adds the table name, if available, to the beginning of the type name hierarchy.
public GetTypeNameHierarchy ( object baseObject ) : Collection
baseObject object The to process.
return Collection

IsGettable() public method

Gets whether the property is gettable.
public IsGettable ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : bool
adaptedProperty System.Management.Automation.PSAdaptedProperty The property to check.
return bool

IsSettable() public method

Gets whether the property is settable.
public IsSettable ( System.Management.Automation.PSAdaptedProperty adaptedProperty ) : bool
adaptedProperty System.Management.Automation.PSAdaptedProperty The property to check.
return bool

SetPropertyValue() public method

Sets the property value.
The operation is not supported.
public SetPropertyValue ( System.Management.Automation.PSAdaptedProperty adaptedProperty, object value ) : void
adaptedProperty System.Management.Automation.PSAdaptedProperty The property to set.
value object The property value to set.
return void