C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
EnsureNotDisposed ( ) : void
GetDifference ( RmAttributeValue>.Dictionary sourceAttributes, RmAttributeValue>.Dictionary destinationAttributes ) : IList

Gets the differences from source and destination attributes.

Описание методов

AcceptChanges() публичный Метод

Commits all of the changes made the RmResource object. GetChanges() will return an empty list immediately after this call.
public AcceptChanges ( ) : void
Результат void

BeginChanges() публичный Метод

Starts tracking changes in the underlying RmResource.
public BeginChanges ( ) : void
Результат void

DiscardChanges() публичный Метод

Discards all of the changes made ot the RmResource object since the transaction began or a call to AcceptChanges()
public DiscardChanges ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

GetChanges() публичный Метод

Returns a list of changes made to this object since the transaction began or the last call to AcceptChanges.
public GetChanges ( ) : IList
Результат IList

GetDifference() публичный статический Метод

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.
Результат IList

RmResourceChanges() публичный Метод

Begins a transaction on the provided RmResource object.
public RmResourceChanges ( RmResource rmObject ) : System
rmObject RmResource The object to watch during the transaction.
Результат System