PolicyCollection-Klasse

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

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcCollection< (Of < ( <'Policy, Policy. . :: . .Key, PolicyStore> ) > ) >
    Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcCollatedDictionaryCollection< (Of < ( <'Policy, Policy. . :: . .Key, PolicyStore> ) > ) >
      Microsoft.SqlServer.Management.Dmf..::..PolicyCollection

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

Syntax

'Declaration
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Public NotInheritable Class PolicyCollection _
    Inherits SfcCollatedDictionaryCollection(Of Policy, Policy..::..Key, PolicyStore)
'Usage
Dim instance As PolicyCollection
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public sealed class PolicyCollection : SfcCollatedDictionaryCollection<Policy, Policy..::..Key, PolicyStore>
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
public ref class PolicyCollection sealed : public SfcCollatedDictionaryCollection<Policy^, Policy..::..Key^, PolicyStore^>
[<SealedAttribute>]
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
type PolicyCollection =  
    class
        inherit SfcCollatedDictionaryCollection<Policy, Policy..::..Key, PolicyStore>
    end
public final class PolicyCollection extends SfcCollatedDictionaryCollection<Policy, Policy..::..Key, PolicyStore>

Der PolicyCollection-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode PolicyCollection(PolicyStore) Initializes a new instance of the PolicyCollection class.
Öffentliche Methode PolicyCollection(PolicyStore, IComparer< (Of < <' (String> ) > > )) Initializes a new instance of the PolicyCollection class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Ascending Gets or sets a value indicating whether to sort in ascending order. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Eigenschaft Count Gets the number of elements contained in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Eigenschaft CultureInfo Gets or sets the CultureInfo object that is used by the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Eigenschaft IgnoreCase Gets or sets a value indicating whether the collection is case-sensitive. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Eigenschaft Initialized Gets a value indicating whether the collection has been initialized. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Eigenschaft IsReadOnly Gets a value indicating whether the collection is read-only. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Eigenschaft IsSynchronized Gets or sets a value indicating whether access to the collection is synchronized (thread safe). Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Eigenschaft Item[ ( [ ( String] ) ] ) Gets a Policy object in the collection by name.
Öffentliche Eigenschaft Item[ ( [ ( K] ) ] ) Gets the item specified by the key. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Eigenschaft Parent Gets or sets the type of the parent object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Eigenschaft SyncRoot Gets or sets an object that can be used to synchronize access to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Add Adds an item to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode AddShadow Adds the specified object to the shadow collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode Clear Removes all items from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode Contains(String) Verifies whether the specified string exists in the collection.
Öffentliche Methode Contains(T) Determines whether the collection contains the specified object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode CopyTo(array<T> [] () [] [], Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode CopyTo(Array, Int32) Copies the elements from the collection to the specified array, starting at the specified array index. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode CreateAndInitializeChildObject Creates a child object and adds it to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode EnsureCollectionInitialized Initialize the collection from the server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode FinishMerge Swaps the new collection for the old collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode GetCollectionElementNameImpl Gets the Uniform Resource Name (URN) suffix for elements in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode GetElementFactoryImpl Returns the factory that is used to instantiate objects for the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode GetEnumerator Returns an enumerator that can iterate through the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode GetExistingObjectByKey Uses the specified key to retrieve an existing object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode 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. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode ImplAddExisting Adds an item to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode ImplRemoveExisting Removes the specified object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode InitInnerCollection Creates an empty internal collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode PrepareMerge Prepares to merge fresh query results into the existing collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode Refresh() () () () Refreshes the collection by creating new and merging existing objects and properties in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode Refresh(Boolean) Refreshes the collection by creating new and merging existing objects and properties in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode Remove Removes the specified object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode 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. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode Rename Renames the specified object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Geschützte Methode 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. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IComparer< (Of < <' (K> ) > > ). . :: . .Compare Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. Compares two keys. (Geerbt von SfcCollatedDictionaryCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft IListSource. . :: . .ContainsListCollection Gets a value indicating whether the collection is a collection of IList objects. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode IEnumerable. . :: . .GetEnumerator Gets an enumerator that can iterate the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode IListSource. . :: . .GetList Returns an IList object that can be bound to a data source from an object that does not implement the IList interface. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .Add Adds the specified object to the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .AddShadow Adds the specified object to the shadow collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcCollection. . :: . .Count Gets the number of items contained in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .EnsureInitialized Initializes the collection from the server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .FinishMerge Swaps the new collection for the old collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .GetCollectionElementNameImpl Gets the URN suffix for elements in the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .GetElementFactory Gets the factory that is used to instantiate objects for the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .GetExisting Uses the specified key to retrieve an existing item from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode 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. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcCollection. . :: . .Initialized Gets or sets a value indicating whether the collection has been initialized. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcCollection. . :: . .Parent Gets the parent object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .PrepareMerge Prepares to merge fresh query results into the existing collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .Remove Removes the specified object from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .RemoveElement Removes the specified element from the collection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcCollection. . :: . .Rename Renames the specified object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SfcCollection< (Of < ( <'T, K, ParentT> ) > ) >.)

Zum Anfang

Hinweise

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

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.