Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

ICatalogObject::Key property

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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ComAdmin.h

IDL

ComAdmin.Idl

See also

ICatalogObject

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.