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

SecondsSpecified Property

Previous pageReturn to chapter overviewNext page

描述

 

SWbemDateTime对象的SecondsSpecified属性是一个布尔值,指示CIM DATETIME值中的秒组件是否包含间隔或通配符值。如果SecondsSpecifiedTRUEIsIntervalFALSE,则SWbemDateTime.Seconds包含日期值。包含间隔的日期时间值不能转换为VT_DATE格式或FILETIME格式。如果SecondsSpecified为FALSE,IsIntervalTRUE,则SWbemDateTime.Seconds包含一个间隔。

 

PowerBASIC 语法

 

PROPERTY GET SecondsSpecified () AS INTEGER

PROPERTY SET SecondsSpecified (BYVAL bSecondsSpecified AS INTEGER)

 

参数(仅限设置属性)

 

bSecondsSpecified

 

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。