PolicyStore.SubscribeToPolicyCategory Método
Subscribes the policy store to the category specified by the policyCategory and target parameters.
Espacio de nombres: Microsoft.SqlServer.Management.Dmf
Ensamblado: Microsoft.SqlServer.Dmf (en Microsoft.SqlServer.Dmf.dll)
Sintaxis
'Declaración
Public Function SubscribeToPolicyCategory ( _
target As SfcQueryExpression, _
policyCategory As String _
) As PolicyCategorySubscription
'Uso
Dim instance As PolicyStore
Dim target As SfcQueryExpression
Dim policyCategory As String
Dim returnValue As PolicyCategorySubscription
returnValue = instance.SubscribeToPolicyCategory(target, _
policyCategory)
public PolicyCategorySubscription SubscribeToPolicyCategory(
SfcQueryExpression target,
string policyCategory
)
public:
PolicyCategorySubscription^ SubscribeToPolicyCategory(
SfcQueryExpression^ target,
String^ policyCategory
)
member SubscribeToPolicyCategory :
target:SfcQueryExpression *
policyCategory:string -> PolicyCategorySubscription
public function SubscribeToPolicyCategory(
target : SfcQueryExpression,
policyCategory : String
) : PolicyCategorySubscription
Parámetros
- target
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression
A SfcQueryExpression object.
- policyCategory
Tipo: System.String
A string value that specifies the policy category.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Dmf.PolicyCategorySubscription
A PolicyCategorySubscription object.