Platform SDK: Exchange Server |
[propput] HRESULT CDOItem([in] IDispatch* newVal); [propputref] HRESULT CDOItem([in] IDispatch* newVal);
Public Property CDOItem as Object write-only
The write-only CDOItem property is used to bind the ACLObject object to a specific CDO.Folder object. Both a propput and propputref version are available, so in Visual Basic you can use either Let or Set keywords when setting the object reference.
session.logon "","",false,true,true,true,"server" & vbLf & "alias" ' get a folder here set store = session.infostores.item("Public Folders") set root = session.getFolder(store.fields(&h66310102),store.id).Folders set fldr = root.item("My Folder") ' get the aclsobject for the folder set acls = createobject("MSExchange.aclobject") acls.cdoitem = fldr ' You could also use the following: ' ' set acls.cdoitem = fldr '