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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for