Menu

#9 Online SDK links to generics

open-accepted
nobody
5
2009-10-07
2008-11-07
Xharze
No

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.

Discussion

  • Xharze

    Xharze - 2009-10-07
    • status: open --> open-accepted
     
  • Xharze

    Xharze - 2009-11-03

    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.