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 |
|
|
IDL |
|
See also
Send comments about this topic to Microsoft
Build date: 2/3/2012