DeletedMetadataCollection DeletedMetadataCollection DeletedMetadataCollection DeletedMetadataCollection Class

Definition

The structure used to return deleted metadata.

public ref class DeletedMetadataCollection sealed : Microsoft::Xrm::Sdk::DataCollection<Microsoft::Xrm::Sdk::Metadata::Query::DeletedMetadataFilters, Microsoft::Xrm::Sdk::DataCollection<Guid> ^>
[System.Runtime.Serialization.CollectionDataContract(Name="DeletedMetadataCollection", Namespace="http://schemas.microsoft.com/xrm/2011/Metadata/Query")]
public sealed class DeletedMetadataCollection : Microsoft.Xrm.Sdk.DataCollection<Microsoft.Xrm.Sdk.Metadata.Query.DeletedMetadataFilters,Microsoft.Xrm.Sdk.DataCollection<Guid>>
type DeletedMetadataCollection = class
    inherit DataCollection<DeletedMetadataFilters, DataCollection<Guid>>
Public NotInheritable Class DeletedMetadataCollection
Inherits DataCollection(Of DeletedMetadataFilters, DataCollection(Of Guid))
Inheritance
DeletedMetadataCollectionDeletedMetadataCollectionDeletedMetadataCollectionDeletedMetadataCollection
Attributes

Remarks

This is the collection returned as the RetrieveMetadataChangesResponse.DeletedMetadata property when the RetrieveMetadataChangesRequest has values set for the ClientVersionStamp and DeletedMetadataFilters properties.

The following code snippets taken from Sample: Query metadata and detect changes show how the DeletedMetadataCollectioncan be used to detect deleted OptionSetMetadata.

MetadataQuery#updateOptionLabelList,removeOptionLabelsFromCache

Constructors

DeletedMetadataCollection() DeletedMetadataCollection() DeletedMetadataCollection() DeletedMetadataCollection()

Initializes a new instance of the DeletedMetadataCollection class.

Methods

Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>) Add(KeyValuePair<TKey,TValue>)

Adds the specified key and value to the dictionary.

(Inherited from DataCollection<TKey,TValue>)
Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds the specified key and value to the dictionary.

(Inherited from DataCollection<TKey,TValue>)
AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) AddRange(IEnumerable<KeyValuePair<TKey,TValue>>) AddRange(IEnumerable<KeyValuePair<TKey,TValue>>)

Adds the elements of the specified collection to the end of the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)
AddRange(KeyValuePair<TKey,TValue>[]) AddRange(KeyValuePair<TKey,TValue>[]) AddRange(KeyValuePair<TKey,TValue>[]) AddRange(KeyValuePair<TKey,TValue>[])

Adds the elements of the specified collection to the end of the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)
Clear() Clear() Clear() Clear()

Removes all items from the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)
Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>) Contains(KeyValuePair<TKey,TValue>)

Determines whether the DataCollection<TKey,TValue> contains a specific value.

(Inherited from DataCollection<TKey,TValue>)
Contains(TKey) Contains(TKey) Contains(TKey) Contains(TKey)

Determines whether the DataCollection<TKey,TValue> contains a specific value.

(Inherited from DataCollection<TKey,TValue>)
ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey)

Determines whether the DataCollection<TKey,TValue> contains a specific key value.

(Inherited from DataCollection<TKey,TValue>)
CopyTo(KeyValuePair<TKey,TValue>[], Int32) CopyTo(KeyValuePair<TKey,TValue>[], Int32) CopyTo(KeyValuePair<TKey,TValue>[], Int32) CopyTo(KeyValuePair<TKey,TValue>[], Int32)

(Inherited from DataCollection<TKey,TValue>)

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through a collection.

(Inherited from DataCollection<TKey,TValue>)
Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>) Remove(KeyValuePair<TKey,TValue>)

Removes the first occurrence of a specific object from the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)
Remove(TKey) Remove(TKey) Remove(TKey) Remove(TKey)

Removes the first occurrence of a specific object from the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)
TryGetValue(TKey, TValue) TryGetValue(TKey, TValue) TryGetValue(TKey, TValue) TryGetValue(TKey, TValue)

Gets the value associated with the specified key.

(Inherited from DataCollection<TKey,TValue>)

Properties

Count Count Count Count

Gets the number of elements in the collection.

(Inherited from DataCollection<TKey,TValue>)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating whether the DataCollection<TKey,TValue> is read-only.

(Inherited from DataCollection<TKey,TValue>)
Item[TKey] Item[TKey] Item[TKey] Item[TKey]

Gets or sets the value associated with the specified key.

(Inherited from DataCollection<TKey,TValue>)
Keys Keys Keys Keys

Gets a collection containing the keys in the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)
Values Values Values Values

Gets a collection containing the values in the DataCollection<TKey,TValue>.

(Inherited from DataCollection<TKey,TValue>)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection.

(Inherited from DataCollection<TKey,TValue>)

Applies to