如何使用C#SDK使用团队模板创建团队?

如何使用C#SDK使用团队模板创建团队?,c#,microsoft-graph-api,microsoft-graph-sdks,microsoft-graph-teams,C#,Microsoft Graph Api,Microsoft Graph Sdks,Microsoft Graph Teams,虽然解释了如何使用原始HTTP请求创建具有的团队,但我无法使用Graph SDK找到现成的解决方案 我能找到的最佳匹配是: serviceClient.Teams.Request().AddAsync(new Team { Template = new TeamsTemplate { Id = "???", ODataType = "???" } }); 但是插入模板名,如standard或educationClass在上述给定请求中的任何位置都不起作用

虽然解释了如何使用原始HTTP请求创建具有的团队,但我无法使用Graph SDK找到现成的解决方案

我能找到的最佳匹配是:

serviceClient.Teams.Request().AddAsync(new Team { Template = new TeamsTemplate { Id = "???", ODataType = "???" } });

但是插入模板名,如
standard
educationClass
在上述给定请求中的任何位置都不起作用。因此,关于如何使用SDK形成请求的任何可用文档?

我使用此请求创建一个具有模板的团队:

await client.Teams.Request().AddAsync(
      new Team
      {
          DisplayName = "My team",
          Description = "desc",
          AdditionalData = new Dictionary<string, object>()
          {
              {"template@odata.bind", "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"}
          }
      });
wait client.Teams.Request().AddAsync(
新团队
{
DisplayName=“我的团队”,
Description=“desc”,
AdditionalData=新字典()
{
{"template@odata.bind", "https://graph.microsoft.com/v1.0/teamsTemplates(‘标准’)“}
}
});
如果你的方法不起作用,请检查此解决方法