Метод EnumDependentPolicies
Returns a collection of polices that are dependent on the condition.
Пространство имен: Microsoft.SqlServer.Management.Dmf
Сборка: Microsoft.SqlServer.Dmf (в Microsoft.SqlServer.Dmf.dll)
Синтаксис
'Декларация
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Function EnumDependentPolicies As ReadOnlyCollection(Of Policy)
'Применение
Dim instance As Condition
Dim returnValue As ReadOnlyCollection(Of Policy)
returnValue = instance.EnumDependentPolicies()
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public ReadOnlyCollection<Policy> EnumDependentPolicies()
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public:
ReadOnlyCollection<Policy^>^ EnumDependentPolicies()
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
member EnumDependentPolicies : unit -> ReadOnlyCollection<Policy>
public function EnumDependentPolicies() : ReadOnlyCollection<Policy>
Возвращаемое значение
Тип: System.Collections.ObjectModel. . :: . .ReadOnlyCollection< (Of < ( <'Policy> ) > ) >
A PolicyCollection object that contains the policies that are dependent on the condition.
Примеры
C#
PolicyCollection policyCollection = new PolicyCollection;
policyCollection = c.EnumDependentPolicies();
VB
Dim policyCollection As PolicyCollection
policyCollection = New PolicyCollection
policyCollection = c.EnumDependentPolicies()