protected virtual void FillClassInfo(ref PClassInfo info, ClassRegistration reg) { info.Cardinality = PClassInfo.ClassCardinalityManyInstances; info.Category = ObjectClassToCategory(reg.ObjectClass); info.ClassId = reg.ClassTypeId; info.Name = reg.DisplayName; }
public virtual int GetClassInfo(int index, ref PClassInfo info) { if (!IsValidRegIndex(index)) { return(TResult.E_InvalidArg); } var reg = _registrations[index]; FillClassInfo(ref info, reg); return(TResult.S_OK); }