Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Load Tenant give error - violates the constraint of type parameter 'T'

$
0
0

Hello,

I did install the

  1. 16 versions of the client side object model assemblies. (http://www.microsoft.com/en-us/download/details.aspx?id=42038)
  2. SharePoint Online Client Components SDK (http://www.microsoft.com/en-in/download/details.aspx?id=35585)

Now, when I am trying to load Tenant like below:

Microsoft.Online.SharePoint.TenantAdministration.Tenant tenant = new Tenant(ctx);

ctx.Load(tenant, t => t.ResourceQuota, t => t.ResourceQuotaAllocated, t => t.StorageQuota, t => t.StorageQuotaAllocated);

ctx.ExecuteQuery();

It gives error:

Method Microsoft.SharePoint.Client.ClientRuntimeContext.Load: type argument 'Microsoft.Online.SharePoint.TenantAdministration.Tenant' violates the constraint of type parameter 'T'.

So, is that 16 version of client side assemblies does not work with Tenant object? Or am I missing something?


Regards, Nanddeep Nachan



Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>