IADsFileShare Property Methods

Property methods take the form of either get_<property> or put_<property>. The property methods of the IADsFileshare interface get or set the properties described below. For more information, see Interface Property Methods.

Properties in Vtable Order

Property Access Method Prototype
CurrentUserCount R/O HRESULT get_CurrentUserCount
([out] LONG *plCurrentUserCount);
Description R/W HRESULT get_Description
([out] BSTR *pbstrDescription);

HRESULT put_Description
([in] BSTR bstrDescription);

HostComputer R/W HRESULT get_HostComputer
([out] BSTR *pbstrHostComputer);

HRESULT put_HostComputer
([in] BSTR bstrHostComputer);

MaxUserCount R/O HRESULT get_MaxUserCount
([out] LONG *plMaxUserCount);
Path R/W HRESULT get_Path
([out] BSTR *pbstrPath);

HRESULT put_Path
([in] BSTR bstrPath);


Property Descriptions

CurrentUserCount
Gets the current number of users connected to the share.
Description
Gets and sets the description of the file share.
HostComputer
Gets and sets an ADsPath reference to the host computer.
MaxUserCount
Gets and sets the maximum number of users allowed to access the share at one time.
Path
Gets and sets the file system path to the shared directory.

See Also

ADSI FileShare Object, ADSI Service Object