Export (0) Print
Expand All

TargetSetCollection Class

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

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class TargetSetCollection : SfcCollatedDictionaryCollection<TargetSet, TargetSet..::..Key, ObjectSet>

The TargetSetCollection type exposes the following members.

  NameDescription
Public methodTargetSetCollection(ObjectSet)Initializes a new instance of the TargetSetCollection class.
Public methodTargetSetCollection(ObjectSet, IComparer<String>)Initializes a new instance of the TargetSetCollection class.
Top

  NameDescription
Public propertyAscendingGets 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>.)
Public propertyCountGets 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>.)
Protected propertyCultureInfoGets 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>.)
Protected propertyIgnoreCaseGets 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>.)
Protected propertyInitializedGets 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>.)
Public propertyIsReadOnlyGets 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>.)
Public propertyIsSynchronizedGets 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>.)
Public propertyItem[String]Gets a TargetSet object in the collection by name.
Public propertyItem[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>.)
Protected propertyParentGets 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>.)
Public propertySyncRootGets 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>.)
Top

  NameDescription
Public methodAddAdds an item to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Protected methodAddShadowAdds 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>.)
Public methodClearRemoves 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>.)
Public methodContains(String)Verifies whether the specified string exists in the collection.
Public methodContains(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>.)
Public methodCopyTo(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>.)
Public methodCopyTo(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>.)
Protected methodCreateAndInitializeChildObjectCreates 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>.)
Protected methodEnsureCollectionInitializedInitialize 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>.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodFinishMergeSwaps 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>.)
Protected methodGetCollectionElementNameImplGets 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>.)
Protected methodGetElementFactoryImplReturns 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>.)
Public methodGetEnumeratorReturns 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>.)
Protected methodGetExistingObjectByKeyUses 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>.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetObjectByKeyUses 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>.)
Public methodGetType (Inherited from Object.)
Protected methodImplAddExistingAdds an item to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Protected methodImplRemoveExistingRemoves 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>.)
Protected methodInitInnerCollectionCreates 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>.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodPrepareMergePrepares 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>.)
Public methodRefresh()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>.)
Public methodRefresh(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>.)
Public methodRemoveRemoves 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>.)
Protected methodRemoveInternalMarks 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>.)
Protected methodRenameRenames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Protected methodResetInnerCollectionResets 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>.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIComparer<K>.CompareDo not reference this member directly in your code. It supports the SQL Server infrastructure. Compares two keys. (Inherited from SfcCollatedDictionaryCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate propertyIListSource.ContainsListCollectionGets a value indicating whether the collection is a collection of IList objects. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets 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>.)
Explicit interface implemetationPrivate methodIListSource.GetListReturns 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>.)
Explicit interface implemetationPrivate methodISfcCollection.AddAdds 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>.)
Explicit interface implemetationPrivate methodISfcCollection.AddShadowAdds 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>.)
Explicit interface implemetationPrivate propertyISfcCollection.CountGets the number of items contained in the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.EnsureInitializedInitializes 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>.)
Explicit interface implemetationPrivate methodISfcCollection.FinishMergeSwaps 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>.)
Explicit interface implemetationPrivate methodISfcCollection.GetCollectionElementNameImplGets 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>.)
Explicit interface implemetationPrivate methodISfcCollection.GetElementFactoryGets 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>.)
Explicit interface implemetationPrivate methodISfcCollection.GetExistingUses 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>.)
Explicit interface implemetationPrivate methodISfcCollection.GetObjectByKeyUses 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>.)
Explicit interface implemetationPrivate propertyISfcCollection.InitializedGets or sets 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>.)
Explicit interface implemetationPrivate propertyISfcCollection.ParentGets the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Explicit interface implemetationPrivate methodISfcCollection.PrepareMergePrepares 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>.)
Explicit interface implemetationPrivate methodISfcCollection.RemoveRemoves 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>.)
Explicit interface implemetationPrivate methodISfcCollection.RemoveElementRemoves 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>.)
Explicit interface implemetationPrivate methodISfcCollection.RenameRenames the specified object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.)
Top

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft