ObjectSetCollection Class
The ObjectSetCollection class represents a collection of ObjectSet objects that represent all the object sets in the policy store.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcCollection<ObjectSet, ObjectSet.Key, PolicyStore>
Microsoft.SqlServer.Management.Sdk.Sfc.SfcDictionaryCollection<ObjectSet, ObjectSet.Key, PolicyStore>
Microsoft.SqlServer.Management.Dmf.ObjectSetCollection
Namespace: Microsoft.SqlServer.Management.Dmf
Assembly: Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)
Syntax
'Declaration
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class ObjectSetCollection _
Inherits SfcDictionaryCollection(Of ObjectSet, ObjectSet..::..Key, PolicyStore)
'Usage
Dim instance As ObjectSetCollection
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class ObjectSetCollection : SfcDictionaryCollection<ObjectSet, ObjectSet..::..Key, PolicyStore>
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class ObjectSetCollection sealed : public SfcDictionaryCollection<ObjectSet^, ObjectSet..::..Key^, PolicyStore^>
[<SealedAttribute>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type ObjectSetCollection =
class
inherit SfcDictionaryCollection<ObjectSet, ObjectSet..::..Key, PolicyStore>
end
public final class ObjectSetCollection extends SfcDictionaryCollection<ObjectSet, ObjectSet..::..Key, PolicyStore>
The ObjectSetCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ObjectSetCollection | Initializes a new instance of the ObjectSetCollection class. |
Top
Properties
Name | Description | |
---|---|---|
Count | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
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>.) | |
IsReadOnly | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
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[String] | Gets a ObjectSet object in the collection by name. | |
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>.) | |
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 | 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>.) |
Top
Methods
Name | Description | |
---|---|---|
Add | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
AddShadow | 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 SfcDictionaryCollection<T, K, ParentT>.) | |
Clear | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
Contains(String) | Verifies whether the specified string exists in the collection. | |
Contains(T) | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
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(array<T[], Int32) | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
CreateAndInitializeChildObject | 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 | 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>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FinishMerge | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
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 | 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 | Do not reference this member directly in your code. It supports the SQL Server infrastructure. Gets an enumeration of the collection. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
GetExistingObjectByKey | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectByKey | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
GetType | (Inherited from Object.) | |
ImplAddExisting | Adds an existing specified object to this collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
ImplRemoveExisting | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
InitInnerCollection | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
MemberwiseClone | (Inherited from Object.) | |
PrepareMerge | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
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) | 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 | Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcDictionaryCollection<T, K, ParentT>.) | |
RemoveInternal | 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 | 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>.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IListSource.ContainsListCollection | Gets 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>.) | |
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 | 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 | 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 | 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.Count | Gets 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>.) | |
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 | 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 | 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 | 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 | 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 | 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.Initialized | Gets 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>.) | |
ISfcCollection.Parent | Gets the parent object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SfcCollection<T, K, ParentT>.) | |
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 | 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 | 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 | 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>.) |
Top
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.