The Attributes object represents the set of application-specific information. The information is published by a user who registered on the ILS server.
IIlsAttributes Interface |
The IIlsAttributes interface is obtained from the IIlsMain::CreateAttributes method. The interface provides the methods described in this section.
EnumAttributes |
GetAttribute |
SetAttribute |
SetAttributeName |
HRESULT IIlsAttributes::EnumAttributes(
[out] IEnumIlsNames **ppEnumAttribute);
Returns the attribute enumerator. The application enumerates the attribute name from the enumerator.
S_OK | Success. |
ILS_E_ACCESS_CONTROL | Attribute type is ILS_ATTRTYPE_NAME_ONLY. |
ILS_E_POINTER | ppEnumAttribute is NULL. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
Back to IIlsAttributes Interface
HRESULT IIlsAttributes::GetAttribute(
BSTR bstrName,
BSTR *pbstrValue);
Retrieves the value of the specified attribute.
S_OK | Success. |
ILS_E_POINTER | Address of return string is NULL, or Attribute name is NULL. |
ILS_E_PARAMETER | Attribute name is empty. |
ILS_E_ACCESS_CONTROL | Attribute type is ILS_ATTRTYPE_NAME_ONLY. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
ILS_E_FAIL | Attribute not found. |
Back to IIlsAttributes Interface
HRESULT IIlsAttributes::SetAttribute(
BSTR bstrName,
BSTR bstrValue);
Adds a new attribute if the attribute name does not exist, or replaces the attribute value with the specified value if the attribute exists, or removes the attribute if the attribute exists and the bstrValue parameter is NULL.
S_OK | Success. |
ILS_E_POINTER | Attribute name us NULL. |
ILS_E_PARAMETER | Attribute name is empty. |
ILS_E_ACCESS_CONTROL | Attribute type is ILS_ATTRTYPE_NAME_ONLY. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
Back to IIlsAttributes Interface
HRESULT IIlsAttributes::SetAttributeName(
BSTR bstrName);
Allows the application to specify the name of the attribute.
S_OK | Success. |
ILS_E_ACCESS_CONTROL | Attribute type is ILS_ATTRTYPE_NAME_ONLY. |
ILS_E_POINTER | Attribute name is NULL. |
ILS_E_PARAMETER | Attribute name is empty. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
If the Attributes object is of the ILS_ATTRTYPE_NAME_ONLY type, the Attributes object is used to specify which extended attributes are to be retrieved from the server.
Back to IIlsAttributes Interface
Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.