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.
| Method | Description |
|---|---|
| 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.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Gets the object's ADsPath that uniquely identifies this object from all others. | |
|
Read-only |
Gets the name of the object's schema class. | |
|
Read-only |
Gets the GUID of the object as stored in the underlying directory store. | |
|
Read-only |
Gets the number of locks on the resource. | |
|
Read-only |
Gets the object's relative name. | |
|
Read-only |
Gets the ADsPath string for the parent of the object. | |
|
Read-only |
Gets the file system path of the opened resource. | |
|
Read-only |
Gets the ADsPath string to the schema class object for this object. | |
|
Read-only |
Gets the name of the user for the resource. | |
|
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 |
|
|
DLL |
|
|
IID |
IID_IADsResource is defined as 34A05B20-4AAB-11CF-AE2C-00AA006EBFB9 |