首页 > 解决方案 > 如何在 Salesforce 中检索 API 限制信息?

问题描述

我正在检索我的服务并在成功登录后调用以下命令

  SforceService myservice = null;
  LimitInfo apiLimits = null;

  if (myservice.LimitInfoHeaderValue != null)
            mylimits = myservice.LimitInfoHeaderValue.limitInfo[0];

但 myservice.LimitInfoHeaderValue 始终为 null ?我会假设它会在成功登录时填充数据?

标签: c#salesforce

解决方案


推荐阅读