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
Afficher le fichier Open project: Predica/FimClient Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
EnsureNotDisposed ( ) : void
GetDifference ( RmAttributeValue>.Dictionary sourceAttributes, RmAttributeValue>.Dictionary destinationAttributes ) : IList

Gets the differences from source and destination attributes.

Method Details

AcceptChanges() public méthode

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

BeginChanges() public méthode

Starts tracking changes in the underlying RmResource.
public BeginChanges ( ) : void
Résultat void

DiscardChanges() public méthode

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

Dispose() public méthode

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

GetChanges() public méthode

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

GetDifference() public static méthode

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.
Résultat IList

RmResourceChanges() public méthode

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