#### GetPropertyAttribObj

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

- Returns a PropertyAttribute object that contains the property's attributes if the property is set at that node or is set at some parent node and is inheritable.
- Returns an Error if the property is not set at that node, or its parent node and is inheritable.
- Returns an Error if the property is not set at that node, but set at parent and not inheritable.

###### Syntax

Initializing:

PropAttObj = object.GetPropertyAttribObj(property)

Using:

RetBool = PropAttObj.Attribute

###### Parts

PropAttObj
  Reference to a PropertyAttribute object that returns the attributes of an IIS Admin Object’s specified metabase 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 attributes 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.
  IsInherit | 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 or AppCreate2, 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.

© 1997-2001 Microsoft Corporation. All rights reserved.