C# Class Microsoft.ResourceManagement.ObjectModel.RmResourceChanges

A transaction object monitors the changes made to an RmResource object. Use this class to check for changes when updating the Resource Management Service.
Inheritance: IDisposable
显示文件 Open project: Predica/FimClient Class Usage Examples

Public Methods

Method Description
AcceptChanges ( ) : void

Commits all of the changes made the RmResource object. GetChanges() will return an empty list immediately after this call.

BeginChanges ( ) : void

Starts tracking changes in the underlying RmResource.

DiscardChanges ( ) : void

Discards all of the changes made ot the RmResource object since the transaction began or a call to AcceptChanges()

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetChanges ( ) : IList

Returns a list of changes made to this object since the transaction began or the last call to AcceptChanges.

GetDifference ( RmResource source, RmResource destination ) : IList

Returns a list of changes to make to source in order for it to look like destination.

RmResourceChanges ( RmResource rmObject ) : System

Begins a transaction on the provided RmResource object.

Private Methods

Method Description
EnsureNotDisposed ( ) : void
GetDifference ( RmAttributeValue>.Dictionary sourceAttributes, RmAttributeValue>.Dictionary destinationAttributes ) : IList

Gets the differences from source and destination attributes.

Method Details

AcceptChanges() public method

Commits all of the changes made the RmResource object. GetChanges() will return an empty list immediately after this call.
public AcceptChanges ( ) : void
return void

BeginChanges() public method

Starts tracking changes in the underlying RmResource.
public BeginChanges ( ) : void
return void

DiscardChanges() public method

Discards all of the changes made ot the RmResource object since the transaction began or a call to AcceptChanges()
public DiscardChanges ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

GetChanges() public method

Returns a list of changes made to this object since the transaction began or the last call to AcceptChanges.
public GetChanges ( ) : IList
return IList

GetDifference() public static method

Returns a list of changes to make to source in order for it to look like destination.
public static GetDifference ( RmResource source, RmResource destination ) : IList
source RmResource The starting object state.
destination RmResource The ending object state.
return IList

RmResourceChanges() public method

Begins a transaction on the provided RmResource object.
public RmResourceChanges ( RmResource rmObject ) : System
rmObject RmResource The object to watch during the transaction.
return System