GKTurnBasedMatch.LoadMatchAsync(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
加载由 matchId
标识的匹配项,并传递匹配 (null
(如果) 发生错误)和错误对象 ((如果没有错误) 到 onCompletion
),则传递该对象为 null。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch> LoadMatchAsync (string matchId);
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch> LoadMatchAsync (string matchId);
static member LoadMatchAsync : string -> System.Threading.Tasks.Task<GameKit.GKTurnBasedMatch>
参数
- matchId
- String
返回
表示异步 LoadMatch 操作的任务。 TResult 参数的值的类型为 System.Action<GameKit.GKTurnBasedMatch,Foundation.NSError>。
- 属性