PolicyStore.CreatePolicyFromFacet PolicyStore.CreatePolicyFromFacet PolicyStore.CreatePolicyFromFacet Method

정의

지정한 대상에 대해 지정한 패싯을 기반으로 하는 새 정책을 만든 다음 XML 형식으로 직렬화합니다. Creates a new policy based on the specified facet for the specified target, and then serializes them in XML format.

오버로드

CreatePolicyFromFacet(SfcQueryExpression, String, String, String) CreatePolicyFromFacet(SfcQueryExpression, String, String, String) CreatePolicyFromFacet(SfcQueryExpression, String, String, String)

새 정책을 만듭니다는 SfcQueryExpression 개체와 이름입니다. Creates a new policy from an SfcQueryExpression object and names.

CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter) CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter) CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter)

새 정책을 만듭니다는 SfcQueryExpression 개체 및 XmlWriter 개체입니다. Creates a new policy from an SfcQueryExpression object and an XmlWriter object.

CreatePolicyFromFacet(Object, String, String, String, XmlWriter) CreatePolicyFromFacet(Object, String, String, String, XmlWriter) CreatePolicyFromFacet(Object, String, String, String, XmlWriter)

새 정책을 만듭니다는 ObjectXmlWriter 개체입니다. Creates new policy from an Object and an XmlWriter object.

CreatePolicyFromFacet(SfcQueryExpression, String, String, String) CreatePolicyFromFacet(SfcQueryExpression, String, String, String) CreatePolicyFromFacet(SfcQueryExpression, String, String, String)

새 정책을 만듭니다는 SfcQueryExpression 개체와 이름입니다. Creates a new policy from an SfcQueryExpression object and names.

public:
 void CreatePolicyFromFacet(Microsoft::SqlServer::Management::Sdk::Sfc::SfcQueryExpression ^ target, System::String ^ facetName, System::String ^ policyName, System::String ^ conditionName);
public void CreatePolicyFromFacet (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target, string facetName, string policyName, string conditionName);
Public Sub CreatePolicyFromFacet (target As SfcQueryExpression, facetName As String, policyName As String, conditionName As String)
매개 변수
facetName
String String String

대상 식의 이름입니다. The name of the target expression.

policyName
String String String

새 정책의 이름입니다. The name of the new policy.

conditionName
String String String

대상 식에 정의 된 조건의 이름입니다. The name of the condition defined by the target expression.

CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter) CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter) CreatePolicyFromFacet(SfcQueryExpression, String, String, String, XmlWriter)

새 정책을 만듭니다는 SfcQueryExpression 개체 및 XmlWriter 개체입니다. Creates a new policy from an SfcQueryExpression object and an XmlWriter object.

public:
 void CreatePolicyFromFacet(Microsoft::SqlServer::Management::Sdk::Sfc::SfcQueryExpression ^ target, System::String ^ facetName, System::String ^ policyName, System::String ^ conditionName, System::Xml::XmlWriter ^ writer);
public void CreatePolicyFromFacet (Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression target, string facetName, string policyName, string conditionName, System.Xml.XmlWriter writer);
Public Sub CreatePolicyFromFacet (target As SfcQueryExpression, facetName As String, policyName As String, conditionName As String, writer As XmlWriter)
매개 변수
target
SfcQueryExpression SfcQueryExpression SfcQueryExpression

대상 식입니다. The target expression.

facetName
String String String

대상 식의 이름입니다. The name of the target expression.

policyName
String String String

새 정책의 이름입니다. The name of the new policy.

conditionName
String String String

대상 식에 정의 된 조건의 이름입니다. The name of the condition defined by the target expression.

writer
XmlWriter XmlWriter XmlWriter

작성기입니다. The writer.

CreatePolicyFromFacet(Object, String, String, String, XmlWriter) CreatePolicyFromFacet(Object, String, String, String, XmlWriter) CreatePolicyFromFacet(Object, String, String, String, XmlWriter)

새 정책을 만듭니다는 ObjectXmlWriter 개체입니다. Creates new policy from an Object and an XmlWriter object.

public:
 void CreatePolicyFromFacet(System::Object ^ target, System::String ^ facetName, System::String ^ policyName, System::String ^ conditionName, System::Xml::XmlWriter ^ writer);
public void CreatePolicyFromFacet (object target, string facetName, string policyName, string conditionName, System.Xml.XmlWriter writer);
Public Sub CreatePolicyFromFacet (target As Object, facetName As String, policyName As String, conditionName As String, writer As XmlWriter)
매개 변수
target
Object Object Object

Object 개체입니다. An Object object.

facetName
String String String

대상 식의 이름입니다. The name of the target expression.

policyName
String String String

새 정책의 이름입니다. The name of the new policy.

conditionName
String String String

대상 식에 정의 된 조건의 이름입니다. The name of the condition defined by the target expression.

writer
XmlWriter XmlWriter XmlWriter

XmlWriter 개체입니다. An XmlWriter object.

적용 대상