共用方式為


Condition.Facet 屬性

Gets or sets the facet that is associated with the condition.

命名空間:  Microsoft.SqlServer.Management.Dmf
組件:  Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property Facet As String 
    Get 
    Set
'用途
Dim instance As Condition 
Dim value As String 

value = instance.Facet

instance.Facet = value
[SfcPropertyAttribute(SfcPropertyFlags.Required)]
public string Facet { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Required)]
public:
property String^ Facet {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Required)>]
member Facet : string with get, set
function get Facet () : String 
function set Facet (value : String)

屬性值

型別:System.String
A String value that specifies the facet that is associated with the condition.

備註

The facet represents some configuration, setting or limit within the database application structure that can be enforced using Policy-Based Management.

範例

C#

Condition c = new Condition(ps, conditionName);
c.Facet = facet;
c.ExpressionNode = exprNode;
c.Create();

VB

Dim c As Condition
c = New Condition(ps, conditionName)
c.Facet = facet
c.ExpressionNode = exprNode
c.Create()

請參閱

參考

Condition 類別

Microsoft.SqlServer.Management.Dmf 命名空間