GetPropertyAttribObj

You can use this method to access information about attributes for individual ADSI properties. GetPropertyAttribObj works in the following way:

Syntax

Initializing:

PropAttObj = object.GetPropertyAttribObj(property)

Using:

RetBool = PropAttObj.Attribute

 

Parts
PropAttObj
Reference to an object that contains the property attributes for the property.
object
Contains an IIS Admin Object, usually as a result of a previous GetObject operation.
property
String that contains the name of the property whose attributes are being requested.
RetBool
Boolean that indicates whether the attribute specified by Attribute is enabled or disabled.
Attribute
Indicates which attribute is being queried. The possible attributes are:
Attribute Description
Inherit Specifies whether the property is inheritable.
PartialPath Indicates whether a partial path is present.
Secure Indicates whether the property is secure.
Reference Specifies if the property was received by a reference.
Volatile Indicates whether the property is volatile.
IsInherited Specifies whether the property is inherited.
InsertPath Indicates whether a string in a property contains a special insert value.
AllAttributes Contains all the attributes listed in this table in one Long.

Remarks

Unlike most other ADSI objects, the property attributes object does not support Get and Set methods. You must use the object.property syntax to access the individual attributes of the property attribute object.

Note   If a call is made to AppCreate, object path information will be persisted, but you must call SetInfo before the given object is created. If SetInfo is not called, subsequent calls to the object created will fail.