ICatalogObject::get_Key method (comadmin.h)
Retrieves the key property of the object.
This property is read-only.
Syntax
HRESULT get_Key(
VARIANT *pvarRetVal
);
Parameters
pvarRetVal
Return value
None
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
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comadmin.h |