EvaluationFactory.IsTypeSupportedForConstant 方法
Determines whether the specified type is supported for being used as a constant by policy-based management services.
命名空間: Microsoft.SqlServer.Management.Dmf
組件: Microsoft.SqlServer.Dmf (在 Microsoft.SqlServer.Dmf.dll 中)
語法
'宣告
<STraceConfigurationAttribute(SkipAutoTrace := True)> _
Public Shared Function IsTypeSupportedForConstant ( _
type As Type _
) As Boolean
'用途
Dim type As Type
Dim returnValue As Boolean
returnValue = EvaluationFactory.IsTypeSupportedForConstant(type)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public static bool IsTypeSupportedForConstant(
Type type
)
[STraceConfigurationAttribute(SkipAutoTrace = true)]
public:
static bool IsTypeSupportedForConstant(
Type^ type
)
[<STraceConfigurationAttribute(SkipAutoTrace = true)>]
static member IsTypeSupportedForConstant :
type:Type -> bool
public static function IsTypeSupportedForConstant(
type : Type
) : boolean
參數
- type
型別:System.Type
A Type object value that specifies the type.
傳回值
型別:System.Boolean
A Boolean value that specifies whether the type is supported. If true, the type is supported. Otherwise, false.