共用方式為


Policy.UsesFacet 方法

Determines whether the facet identified by the parameter is contained by the Condition.

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

語法

'宣告
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Function UsesFacet ( _
    facet As String _
) As Boolean
'用途
Dim instance As Policy 
Dim facet As String 
Dim returnValue As Boolean 

returnValue = instance.UsesFacet(facet)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public bool UsesFacet(
    string facet
)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public:
bool UsesFacet(
    String^ facet
)
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
member UsesFacet : 
        facet:string -> bool
public function UsesFacet(
    facet : String
) : boolean

參數

  • facet
    型別:System.String
    A string value that contains the facet.

傳回值

型別:System.Boolean
A Boolean value, True if the facet is contained by the Condition, otherwise False.

請參閱

參考

Policy 類別

Microsoft.SqlServer.Management.Dmf 命名空間