This example shows how to retrieve lazy properties. The assigned schedule properties for advertisements are lazy. Therefore, when querying advertisements, each advertisement instance must be retrieved separately and the assigned schedule properties must be parsed separately.
For more information on lazy properties, see SMS Objects.
To read a lazy property
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Connect to an SMS Provider, and get the SWbemServices object.
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Get a collection of all advertisements:
Set colAdvertisements = objSWbemServices.ExecQuery("Select * From SMS_Advertisement") |
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Iterate through the advertisement collection and display the lazy properties:
For Each objAdvert In colAdvertisements WScript.Echo "ActionInProgress = " & objAdvert.ActionInProgress WScript.Echo "AdvertFlags = " & objAdvert.AdvertFlags WScript.Echo "AdvertisementID = " & objAdvert.AdvertisementID WScript.Echo "AdvertisementName = " & objAdvert.AdvertisementName 'For the lazy properties, get the advertisements individually. Set lazyproperties = objSWbemServices.Get("SMS_Advertisement.AdvertisementID='" & ObjAdvert.advertisementid & "'") WScript.Echo "Assigned Schedule = {" for i=0 to ubound(lazyproperties.assignedschedule,1) WScript.Echo " instance of " & lazyproperties.Properties_("AssignedSchedule").Value(0).Path_.Class WScript.Echo lazyproperties.Properties_("AssignedSchedule").Qualifiers_("CIMType") WScript.Echo " DayDuration: " & lazyproperties.AssignedSchedule(i).DayDuration WScript.Echo " Hourspan: " & lazyproperties.AssignedSchedule(i).HourSpan WScript.Echo " IsGMT: " & lazyproperties.AssignedSchedule(i).IsGMT WScript.Echo " StartTime: " & lazyproperties.AssignedSchedule(i).StartTime WScript.Echo "AssignedScheduleEnabled = " & lazyproperties.AssignedScheduleEnabled WScript.Echo "AssignedScheduleIsGMT = " & lazyproperties.AssignedScheduleIsGMT next WScript.Echo "}" WScript.Echo "CollectionID = " & objAdvert.CollectionID WScript.Echo "Comment = " & objAdvert.CommentNext |
<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog.html" frameborder="0" width="728" scrolling="no" height="90"></iframe>
分享到:
相关推荐
hibernate 中的lazy属性的使用
懒:Kule Lazy4 CSS框架
js特效脚本含源码和说明Lazyload图片延迟加载效果本资源系百度网盘分享地址
lazyload1.9.3,图片延迟随滚动条显示。$(function() { $("img.lazyload").lazyload()});
A History of Haskell - Being Lazy With Class
Generator Lazy Demo 跟着例子在3分钟内玩转Generator Lazy。 Useage 向导模式创建 在任意目录中执行yo lazy,然后一路NEXT即可。 在包含配置文件的项目中使用 命令: yo lazy cd build-with-config-exist yo lazy 在...
Exopite-Lazy-Load-XT-WordPress-Plugin Exopite Lazy Load XT使用Ressio Lazy ... 该插件的工作方式是用data-src替换src属性,并在网站的前端加载了内容或页面元时加载了Lazy Load XT脚本。 自从GoogleBOT抓取JavaS
React Lazy Loading - 很容易与 React 集成到 Lazyload 组件、图像等。它会监视元素并告诉您元素何时进入视口。 这样可以在视口中的组件和初始加载减少时执行任何操作。 实现“无限滚动”网站,在您滚动时加载和...
注:LazyImg 必须定义lazy-data属性,属性值是src的图片路径 引入JS文件:<script type="text/javascript" src="js/lazyImg.v1.0.js"> 默认情况下: 在IMG中满足以任何一个条件,都会加载图片; 1、没有class属性 2...
LazyBone Micro框架 这是来自ribs.js示例的todoapp的演示。 它使用LazyRecord作为ORM,并通过Roller Router处理RESTful请求。 引导程序 安装洋葱: $ curl http://install.onionphp.org/ | bash $ onion bundle ...
Lazy是一个帮助查看Salesforce部署期间发生的顶点运行测试的细节的工具。 这不是Salesforce.com产品。 在任何情况下,开发者均不对因使用本软件及其文档而引起的任何直接,间接,特殊,意外或间接损失(包括利润损失...
后台机器人 向后移植将请求拉入发布分支的bot 配置以下环境变量以进行部署: BACKPORT_GH_API = 'api_token_for_your_bot' BACKPORT_MAINTAINER = 'bot_listens_to_this_user' BACKPORT_BOT_GH_NAME = 'bot_github...
RDF :: Lazy-延迟键入对RDF数据的访问 概要 ### How to create a graph $g = RDF::Lazy->new( rdf => $data, # RDF::Trine::Model or ::Store (by reference) namespaces => { # namespace prefix, RDF::NS or RDF...
主题个人专业版主题Lazy5basic(又名Personal Pro)-Concrete5 CMS软件包文件: :
VRCalc ++ FMX脚本执行器::智能VRCalc ++脚本执行器-VRCalc ++ OOSL :: VR系统脚本标准运行时库Delphi ::应用程序-VR Multi Editor ::智能文本编辑器-VR Lazy Code Editor: :基于智能RTF的多语言代码文本编辑器-VR...
懒惰的图像用于延迟加载图像的轻量级 javascript 插件用安装模块: npm install lazy-images需要...IMAGE_SELECTOR 默认为“.lazy”笔记为了让这个模块工作,图像需要通过 img 标签属性或 css 属性定义它们的维度属性。
Lazy
如果有时间,我会尽力上传更新欢迎使用LAZY脚本v2.1.4 制作了Hackersploit的视频: : oBpo5sElrMY 制作了一个视频sstec: : gSO7c2MN7TY 对于功能推荐,将其添加到“问题”选项卡上。 现在! 我不负责您如何使用此...
LazyTableImages.zip V 1.0, 2009-11-16 这是苹果apple的iphone官方例子,帮助你学习UITableView和显示RSS文本,异步方式加载图片...... 这个例子 分阶段地载入和显示一个UITableView. 一开始载入相关的RSS文本,...
LazyK:更新了LazyK源分发