OV_ServiceTypeDefinition::GetById()
OV_ServiceTypeDefinition::GetById_Trans()
- OV_ServiceTypeDefinition GetById(
- [in] string GUID)
- OV_ServiceTypeDefinition GetById_Trans(
- [in] string TransId,
- [in] string GUID)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- GUID
- The GUID property of the instance of OV_ServiceTypeDefinition
to be returned. If the service type with the GUID does not exist,
nothing happens, and the method fails with
MDLAPI_E_SERVICETYPE_NOT_EXIST.
Calling Convention
These methods can be called from a WMI class or instance
object.
Description
Returns the service type (instance of OV_ServiceTypeDefinition)
specified by the GUID property.
Return Value
Instance of OV_ServiceTypeDefinition specified with the
ServiceTypeGUID property.
Extended Status Codes
- MDLAPI_E_SERVICETYPE_NOT_EXIST
- Service type does not exist.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.