SenseNet.ContentRepository.KPIDatasource.GetKPIData C# (CSharp) Méthode

GetKPIData() public méthode

public GetKPIData ( string key ) : KPIData
key string
Résultat KPIData
        public KPIData GetKPIData(string key)
        {
            KPIData kpiData = null;
            if (!string.IsNullOrEmpty(key))
                kpiData = this.KPIDataList.FirstOrDefault(kd => kd.Label == key);

            return kpiData ?? new KPIData(string.Empty, 0, 0);
        }