TargetSetCollection TargetSetCollection TargetSetCollection Class

Definition

The TargetSetCollection class represents a collection of TargetSet objects that represent all the policies in the policy store.

public ref class TargetSetCollection sealed : Microsoft::SqlServer::Management::Sdk::Sfc::SfcCollatedDictionaryCollection<Microsoft::SqlServer::Management::Dmf::TargetSet ^, Microsoft::SqlServer::Management::Dmf::TargetSet::Key ^, Microsoft::SqlServer::Management::Dmf::ObjectSet ^>
public sealed class TargetSetCollection : Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollatedDictionaryCollection<Microsoft.SqlServer.Management.Dmf.TargetSet,Microsoft.SqlServer.Management.Dmf.TargetSet.Key,Microsoft.SqlServer.Management.Dmf.ObjectSet>
Public NotInheritable Class TargetSetCollection
Inherits SfcCollatedDictionaryCollection(Of TargetSet, TargetSet.Key, ObjectSet)
Inheritance

Examples

Using Collections

Remarks

A TargetSetCollection object can be used to gain access to a set of policies. You can use the Item[String] property to return a specific TargetSet object.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Constructors

TargetSetCollection(ObjectSet) TargetSetCollection(ObjectSet) TargetSetCollection(ObjectSet)

Initializes a new instance of the TargetSetCollection class.

TargetSetCollection(ObjectSet, IComparer<String>) TargetSetCollection(ObjectSet, IComparer<String>) TargetSetCollection(ObjectSet, IComparer<String>)

Initializes a new instance of the TargetSetCollection class.

Properties

Ascending Ascending Ascending

Gets or sets a value indicating whether to sort in ascending order. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Count Count Count

Gets the number of elements contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
CultureInfo CultureInfo CultureInfo

Gets or sets the CultureInfo object that is used by the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IgnoreCase IgnoreCase IgnoreCase

Gets or sets a value indicating whether the collection is case-sensitive. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IListSource.ContainsListCollection IListSource.ContainsListCollection IListSource.ContainsListCollection

Gets a value indicating whether the collection is a collection of IList objects.

(Inherited from SfcCollection<T,K,ParentT>)
Initialized Initialized Initialized

Gets a value indicating whether the collection has been initialized. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Count ISfcCollection.Count ISfcCollection.Count

Gets the number of elements contained in the collection.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Initialized ISfcCollection.Initialized ISfcCollection.Initialized

Gets or sets a value indicating whether the collection has been initialized.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Parent ISfcCollection.Parent ISfcCollection.Parent

Gets the parent object.

(Inherited from SfcCollection<T,K,ParentT>)
IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating whether the collection is read-only. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IsSynchronized IsSynchronized IsSynchronized

Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
Item[K] Item[K] Item[K]

Gets the item specified by the key. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
Item[String] Item[String] Item[String]

Gets a TargetSet object in the collection by name.

Parent Parent Parent

Gets or sets the type of the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
SyncRoot SyncRoot SyncRoot

Gets or sets an object that can be used to synchronize access to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)

Methods

Add(T) Add(T) Add(T)

Adds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
AddImpl(T) AddImpl(T) AddImpl(T)

Adds an object or member to this collection.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
AddShadow(T) AddShadow(T) AddShadow(T)

Adds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Clear() Clear() Clear()

Removes all items from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Contains(K) Contains(K) Contains(K)

Determines whether the collection contains the specified key. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Contains(String) Contains(String) Contains(String)

Verifies whether the specified string exists in the collection.

Contains(T) Contains(T) Contains(T)

Determines whether the collection contains the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
CopyTo(T[], Int32) CopyTo(T[], Int32) CopyTo(T[], Int32)

Copies the elements from the collection to the specified array, starting at the specified array index. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
CreateAndInitializeChildObject(K) CreateAndInitializeChildObject(K) CreateAndInitializeChildObject(K)

Creates a child object and adds it to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
EnsureCollectionInitialized() EnsureCollectionInitialized() EnsureCollectionInitialized()

Initialize the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
FinishMerge() FinishMerge() FinishMerge()

Swaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
GetCollectionElementNameImpl() GetCollectionElementNameImpl() GetCollectionElementNameImpl()

Gets the Uniform Resource Name (URN) suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
GetElementFactoryImpl() GetElementFactoryImpl() GetElementFactoryImpl()

Returns the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that can iterate through the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
GetExistingObjectByKey(K) GetExistingObjectByKey(K) GetExistingObjectByKey(K)

Uses the specified key to retrieve an existing object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
GetObjectByKey(K) GetObjectByKey(K) GetObjectByKey(K)

Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
InitInnerCollection() InitInnerCollection() InitInnerCollection()

Creates an empty internal collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
PrepareMerge() PrepareMerge() PrepareMerge()

Prepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
Refresh() Refresh() Refresh()

Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
Refresh(Boolean) Refresh(Boolean) Refresh(Boolean)

Refreshes the collection by creating new and merging existing objects and properties in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
Remove(T) Remove(T) Remove(T)

Removes the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
RemoveImpl(T) RemoveImpl(T) RemoveImpl(T)

Removes the specified object from the collection.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
RemoveInternal(T) RemoveInternal(T) RemoveInternal(T)

Marks the specified object for removal. The state of the object is set to ToBeDropped. The object will be removed when the parent is altered or dropped. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
Rename(T, K) Rename(T, K) Rename(T, K)

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Renames the specified object.

(Inherited from SfcCollection<T,K,ParentT>)
ResetInnerCollection() ResetInnerCollection() ResetInnerCollection()

Resets the CultureInfo, IgnoreCase, and Ascending properties on the inner collection to honor the new settings. Call this method after any of the properties have changed. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
TryGetValue(K, T) TryGetValue(K, T) TryGetValue(K, T)

Gets the value associated with the specified key.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)

Explicit Interface Implementations

IComparer<K>.Compare(K, K) IComparer<K>.Compare(K, K) IComparer<K>.Compare(K, K)

Compares two keys from the collection.

(Inherited from SfcCollatedDictionaryCollection<T,K,ParentT>)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets an enumerator that can iterate the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
IListSource.GetList() IListSource.GetList() IListSource.GetList()

Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Add(SfcInstance) ISfcCollection.Add(SfcInstance) ISfcCollection.Add(SfcInstance)

Adds the specified object to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.AddShadow(SfcInstance) ISfcCollection.AddShadow(SfcInstance) ISfcCollection.AddShadow(SfcInstance)

Adds the specified object to the shadow collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.EnsureInitialized() ISfcCollection.EnsureInitialized() ISfcCollection.EnsureInitialized()

Initializes the collection from the server. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.FinishMerge() ISfcCollection.FinishMerge() ISfcCollection.FinishMerge()

Swaps the new collection for the old collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetCollectionElementNameImpl() ISfcCollection.GetCollectionElementNameImpl() ISfcCollection.GetCollectionElementNameImpl()

Gets the URN suffix for elements in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetElementFactory() ISfcCollection.GetElementFactory() ISfcCollection.GetElementFactory()

Gets the factory that is used to instantiate objects for the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetExisting(SfcKey, SfcInstance) ISfcCollection.GetExisting(SfcKey, SfcInstance) ISfcCollection.GetExisting(SfcKey, SfcInstance)

Uses the specified key to retrieve an existing item from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.GetObjectByKey(SfcKey) ISfcCollection.GetObjectByKey(SfcKey) ISfcCollection.GetObjectByKey(SfcKey)

Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection.

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.PrepareMerge() ISfcCollection.PrepareMerge() ISfcCollection.PrepareMerge()

Prepares to merge fresh query results into the existing collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Remove(SfcInstance) ISfcCollection.Remove(SfcInstance) ISfcCollection.Remove(SfcInstance)

Removes the specified object from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.RemoveElement(SfcInstance) ISfcCollection.RemoveElement(SfcInstance) ISfcCollection.RemoveElement(SfcInstance)

Removes the specified element from the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)
ISfcCollection.Rename(SfcInstance, SfcKey) ISfcCollection.Rename(SfcInstance, SfcKey) ISfcCollection.Rename(SfcInstance, SfcKey)

Renames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

(Inherited from SfcCollection<T,K,ParentT>)

Applies to