Sdílet prostřednictvím


Policy.UsesFacet Method

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

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Function UsesFacet ( _
    facet As String _
) As Boolean
'Usage
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

Parameters

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

Return Value

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

See Also

Reference

Policy Class

Microsoft.SqlServer.Management.Dmf Namespace