| Platform SDK: Active Directory, ADSI, and Directory Services |
The property methods of the IADsGroup interface read and write the properties described in this topic. For more information see Interface Property Methods.
| Property | Description |
|---|---|
| Description
[Visual Basic] [C++] |
Indicates the textual description of the group membership. |
Dim grp As IADsGroup
Set grp = GetObject("WinNT://Microsoft/Administrators")
Debug.Print grp.Description
The following C++/C code snippet binds to a group object and displays the description of the group.
IADsGroup *pGroup;
HRESULT hr;
LPWSTR adsPath = L"WinNT://localHost/Administrators";
hr = ADsGetObject(adsPath,IID_IADsGroup,(void**)&pGroup);
if(FAILED(hr)) exit(hr);
BSTR bstr;
hr = pGroup->get_Description(&bstr);
if(FAILED(hr)) exit(hr);
printf("Descripton: %S\n",bstr);
SysFreeString(bstr);
pGroup->Release();