Online SDK links to generics does not work, this is because we can't supply the fullname of a generics to MSDN as we can with links to non-generics.
Using the Microsoft MTPS Content Service we can get the necessary content identifier for generics.
Example code:
getContentRequest request = new getContentRequest(); request.contentIdentifier = "AssetId:t:System.Collections.Generic.List`1"; ContentServicePortTypeClient proxy = new ContentServicePortTypeClient(); getContentResponse response = proxy.GetContent(new appId(), request); Console.WriteLine(response.contentId);
This gets the content identifier for a List<T> type.
Log in to post a comment.
Using the Microsoft MTPS Content Service we can get the necessary content identifier for generics.
Example code:
getContentRequest request = new getContentRequest();
request.contentIdentifier = "AssetId:t:System.Collections.Generic.List`1";
ContentServicePortTypeClient proxy = new ContentServicePortTypeClient();
getContentResponse response = proxy.GetContent(new appId(), request);
Console.WriteLine(response.contentId);
This gets the content identifier for a List<T> type.