0 out of 1 rated this helpful - Rate this topic

ICatalogObject::Key property

Applies to: desktop apps only

Retrieves the key property of the object.

This property is read-only.

Syntax

HRESULT get_Key(
  [out, retval]  VARIANT *pvarRetVal
);

Property value

The key property of the object.

Error codes

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Remarks

The key property serves as the primary identifier for a collection. In some cases, it is a GUID, such as CLSID for a component; in some cases, it is the object name, as with roles. The key property of a collection is identified in the documentation for each specific collection of the COM+ Administration Collections.

If you add a new object and save it with the key property of an existing object, you overwrite the existing object.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

ComAdmin.h

IDL

ComAdmin.Idl

See also

ICatalogObject

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ