IADsResource interface

The IADsResource interface is a dual interface that inherits from IADs. It is designed to manage an open resource for a file service across a network.

Members

The IADsResource interface inherits from IDispatch and IADs. IADsResource also has these types of members:

Methods

The IADsResource interface has these methods.

MethodDescription
Get

Gets the value for a property by name.

GetEx

Gets the value for a single or multi-valued property by name.

GetInfo

Loads the property values of this object from the underlying directory store.

GetInfoEx

Loads specific property values of this object from the underlying directory store.

Put

Sets the value for a property by name.

PutEx

Sets the value for a single or multi-valued property by name.

SetInfo

Persists the changes on this object to the underlying directory store.

 

Properties

The IADsResource interface has these properties.

PropertyAccess typeDescription

AdsPath

Read-only

Gets the object's ADsPath that uniquely identifies this object from all others.

Class

Read-only

Gets the name of the object's schema class.

GUID

Read-only

Gets the GUID of the object as stored in the underlying directory store.

LockCount

Read-only

Gets the number of locks on the resource.

Name

Read-only

Gets the object's relative name.

Parent

Read-only

Gets the ADsPath string for the parent of the object.

Path

Read-only

Gets the file system path of the opened resource.

Schema

Read-only

Gets the ADsPath string to the schema class object for this object.

User

Read-only

Gets the name of the user for the resource.

UserPath

Read-only

Gets the ADsPath of the user object for the user who opened the resource.

 

Remarks

When a remote user opens a folder or a subfolder on a public share point on the target computer, ADSI considers this folder to be an open resource and represents it with a resource object that implements this interface.

Examples

The following code example shows how to obtain the collection of resource objects from a file service operations object.


Dim fso as IADsFileServiceOperations
Dim rs as IADsCollection
On Error GoTo Cleanup

Set fso = GetObject("WinNT://myHost/LanmanServer")
Set rs = fso.Resources

Cleanup:
    If (Err.Number<>0) Then
        MsgBox("An error has occurred. " & Err.Number)
    End If
    Set rso = Nothing
    Set rs = Nothing


Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Iads.h

DLL

Activeds.dll

IID

IID_IADsResource is defined as 34A05B20-4AAB-11CF-AE2C-00AA006EBFB9

 

 

Show: