Compartilhar via


Classe PolicyCollection

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

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

Sintaxe

'Declaração
Public NotInheritable Class PolicyCollection _
    Inherits SfcCollatedDictionaryCollection(Of Policy, Policy..::..Key, PolicyStore)
'Uso
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>

Comentários

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.

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

Hierarquia de herança

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

Segurança de thread

Quaisquer membros static (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.