CreatePolicyFromFacet 方法 (SfcQueryExpression, String, String, String)
Creates new policy from an SfcQueryExpression object and names.
命名空間: Microsoft.SqlServer.Management.Dmf
組件: Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)
語法
'宣告
Public Sub CreatePolicyFromFacet ( _
target As SfcQueryExpression, _
facetName As String, _
policyName As String, _
conditionName As String _
)
'用途
Dim instance As PolicyStore
Dim target As SfcQueryExpression
Dim facetName As String
Dim policyName As String
Dim conditionName As String
instance.CreatePolicyFromFacet(target, _
facetName, policyName, conditionName)
public void CreatePolicyFromFacet(
SfcQueryExpression target,
string facetName,
string policyName,
string conditionName
)
public:
void CreatePolicyFromFacet(
SfcQueryExpression^ target,
String^ facetName,
String^ policyName,
String^ conditionName
)
member CreatePolicyFromFacet :
target:SfcQueryExpression *
facetName:string *
policyName:string *
conditionName:string -> unit
public function CreatePolicyFromFacet(
target : SfcQueryExpression,
facetName : String,
policyName : String,
conditionName : String
)
參數
- target
型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcQueryExpression
An SfcQueryExpression object.
- facetName
型別:System. . :: . .String
A string value that specifies the name of the target expression.
- policyName
型別:System. . :: . .String
A string value that specifies the name of the new policy.
- conditionName
型別:System. . :: . .String
A string value that specifies the name of the condition defined by the target expression.