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

Seconds Property

Previous pageReturn to chapter overviewNext page

描述

 

SWbemDateTime对象的属性获取或设置一个值,表示datetime值的秒组件。

 

PowerBASIC 语法

 

PROPERTY GET Seconds () AS LONG

PROPERTY SET Seconds (BYVAL iSeconds AS LONG)

 

参数(仅限集合属性)

 

iSeconds

 

LONG.datetime值的秒组件。必须在0到59的范围内。

 

返回值(仅获取资源)

 

LONG.datetime值的秒组件。

 

OBJRESULT

 

错误(名称/十进制/十六进制)

含义

wbemErrValueOutOfRange

-2147217365

&H8004102B

该值不在0到59的范围内。

 

要求

 

客户

需要Windows Vista或Windows XP。

服务器

需要Windows Server 2008或Windows Server 2003。

类型库

使用Wbemdisp.tlb。

Wbemdisp.inc,

DLL

需要Wbemdisp.dll。