다음을 통해 공유


PolicyStore.CreatePolicyFromFacet 메서드 (SfcQueryExpression, String, String, String, XmlWriter)

Creates new policy from an SfcQueryExpression object and an XmlWriter object.

네임스페이스:  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, _
    writer As XmlWriter _
)
‘사용 방법
Dim instance As PolicyStore 
Dim target As SfcQueryExpression 
Dim facetName As String 
Dim policyName As String 
Dim conditionName As String 
Dim writer As XmlWriter

instance.CreatePolicyFromFacet(target, _
    facetName, policyName, conditionName, _
    writer)
public void CreatePolicyFromFacet(
    SfcQueryExpression target,
    string facetName,
    string policyName,
    string conditionName,
    XmlWriter writer
)
public:
void CreatePolicyFromFacet(
    SfcQueryExpression^ target, 
    String^ facetName, 
    String^ policyName, 
    String^ conditionName, 
    XmlWriter^ writer
)
member CreatePolicyFromFacet : 
        target:SfcQueryExpression * 
        facetName:string * 
        policyName:string * 
        conditionName:string * 
        writer:XmlWriter -> unit
public function CreatePolicyFromFacet(
    target : SfcQueryExpression, 
    facetName : String, 
    policyName : String, 
    conditionName : String, 
    writer : XmlWriter
)

매개 변수

  • 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.

참고 항목

참조

PolicyStore 클래스

CreatePolicyFromFacet 오버로드

Microsoft.SqlServer.Management.Dmf 네임스페이스