勇芳软件工作室.汉化:  Windows Management Instrumentation > Scripting API for WMI > Scripting API Objects > SWbemDateTime >

MonthSpecified Property

Previous pageReturn to chapter overviewNext page

描述

 

SWbemDateTime对象的MonthSpecified属性是一个布尔值,指示CIM datetime值中的月份组件是否包含间隔或通配符值。如果MonthSpecifiedTRUEIsIntervalFALSE,则SWbemDateTime.Month包含日期值。包含间隔的日期时间值不能转换为VT_DATE格式或FILETIME格式。如果MonthSpecifiedFALSEIsIntervalTRUE,则SWbemDateTime.Month包含一个间隔。

 

PowerBASIC 语法

 

PROPERTY GET MonthSpecified () AS INTEGER

PROPERTY SET MonthSpecified (BYVAL bMonthSpecified AS INTEGER)

 

参数(仅限集合属性)

 

bMonthSpecified

 

VARIANT_BOOL.指示CIM datetime值中的月份组件是否包含间隔或通配符值的布尔值。

 

返回值(仅获取资源)

 

VARIANT_BOOL.VARIANT_FALSE(0)或VARIANT_TRUE(-1)。

 

要求

 

客户

需要Windows Vista或Windows XP。

服务器

需要Windows Server 2008或Windows Server 2003。

类型库

使用Wbemdisp.tlb。

Wbemdisp.inc,

DLL

需要Wbemdisp.dll。