Partager via


Classe PolicyCollection

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

Espace de noms :  Microsoft.SqlServer.Management.Dmf
Assembly :  Microsoft.SqlServer.Dmf (dans Microsoft.SqlServer.Dmf.dll)

Syntaxe

'Déclaration
Public NotInheritable Class PolicyCollection _
    Inherits SfcCollatedDictionaryCollection(Of Policy, Policy..::..Key, PolicyStore)
'Utilisation
Dim instance As PolicyCollection
public sealed class PolicyCollection : SfcCollatedDictionaryCollection<Policy, Policy..::..Key, PolicyStore>
public ref class PolicyCollection sealed : public SfcCollatedDictionaryCollection<Policy^, Policy..::..Key^, PolicyStore^>
[<SealedAttribute>]
type PolicyCollection =  
    class
        inherit SfcCollatedDictionaryCollection<Policy, Policy..::..Key, PolicyStore>
    end
public final class PolicyCollection extends SfcCollatedDictionaryCollection<Policy, Policy..::..Key, PolicyStore>

Notes

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.

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Hiérarchie d'héritage

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.