8.4.1 IADsLocality

The IADsLocality interface is used to get and set the properties of the Locality object. The interface definition is as follows:

[ object, uuid(IID_IADsLocality), oleautomation, dual ]

interface IADsLocality: IADs

{

// Read/write properties.

[propget]

HRESULT Description ([out, retval]BSTR *pbstrDescription);

[propput]

HRESULT Description ([in]BSTR bstrDescription);

[propget]

HRESULT LocalityName ([out, retval]BSTR *pbstrLocalityName);

[propput]

HRESULT LocalityName ([in]BSTR bstrLocalityName);

[propget]

HRESULT PostalAddress ([out, retval]BSTR *pbstrPostalAddress);

[propput]

HRESULT PostalAddress ([in]BSTR bstrPostalAddress);

[propget]

HRESULT SeeAlso ([out, retval]VARIANT *pvSeeAlso);

[propput]

HRESULT SeeAlso ([in]VARIANT vAlso);

};

Property

Syntax

Description

Description

String

Gets and sets the text that describes the Locality.

LocalityName

String

Gets and sets the locality name. The locality name identifies a geographical area in which the container is physically located.

PostalAddress

PostalAddress

Gets and sets the main postal address of the locality.

SeeAlso

ADsPath

Gets and sets an array of names of other directory objects which may be relevant to this object.