共用方式為


3.1.4.7.1 get_EventClassPartitionID (Opnum 29)

The get_EventClassPartitionID method gets the EventClassPartitionID property of the event class.

 [id(12), propget, helpstring("property EventClassPartitionID")] HRESULT EventClassPartitionID(
   [out, retval] BSTR* pbstrEventClassPartitionID
 );

pbstrEventClassPartitionID: If the function returns a success HRESULT, this MUST contain the EventClassPartitionID property of the event class as specified in section 3.1.1.1. The value MUST conform to the format as specified in section 2.2.3.

Return Values: An HRESULT specifying success or failure. All success codes MUST be treated the same, and all failure codes MUST be treated the same.

When this method is invoked, the server MUST verify that this value was previously set on this DCOM object instance servicing this method call. If not, the server MUST fail the call, returning a failure HRESULT back to the client. Otherwise, the server MUST return the value of the EventClassPartitionID property.