GetId method

ServiceId? GetId()
The unique Id of this object.

Implementation

ServiceId? GetId() {
  PropertyDefinition? idPropertyDefinition = this.GetIdPropertyDefinition();

  OutParam<Object> serviceIdOutParam = new OutParam();

  if (idPropertyDefinition != null) {
    this.PropertyBag.TryGetValue(idPropertyDefinition, serviceIdOutParam);
  }

  return serviceIdOutParam.param as ServiceId?;
}