共用方式為


TargetSetCollection 類別

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

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
Public NotInheritable Class TargetSetCollection _
    Inherits SfcCollatedDictionaryCollection(Of TargetSet, TargetSet..::..Key, ObjectSet)
'用途
Dim instance As TargetSetCollection
public sealed class TargetSetCollection : SfcCollatedDictionaryCollection<TargetSet, TargetSet..::..Key, ObjectSet>
public ref class TargetSetCollection sealed : public SfcCollatedDictionaryCollection<TargetSet^, TargetSet..::..Key^, ObjectSet^>
[<SealedAttribute>]
type TargetSetCollection =  
    class
        inherit SfcCollatedDictionaryCollection<TargetSet, TargetSet..::..Key, ObjectSet>
    end
public final class TargetSetCollection extends SfcCollatedDictionaryCollection<TargetSet, TargetSet..::..Key, ObjectSet>

備註

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.

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

範例

使用集合

繼承階層

System. . :: . .Object
  SfcCollection< (Of < ( <'TargetSet, TargetSet. . :: . .Key, ObjectSet> ) > ) >
    SfcCollatedDictionaryCollection< (Of < ( <'TargetSet, TargetSet. . :: . .Key, ObjectSet> ) > ) >
      Microsoft.SqlServer.Management.Dmf..::..TargetSetCollection

執行緒安全性

這個類型的任何公用static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員都可以是安全執行緒。