Sdílet prostřednictvím


CLSDataStoreDelegate.CreateContext(String, CLSContext, String[]) Method

Definition

Requests a context for the provided parameters.

[Foundation.Export("createContextForIdentifier:parentContext:parentIdentifierPath:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual ClassKit.CLSContext? CreateContext(string identifier, ClassKit.CLSContext parentContext, string[] parentIdentifierPath);
[<Foundation.Export("createContextForIdentifier:parentContext:parentIdentifierPath:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CreateContext : string * ClassKit.CLSContext * string[] -> ClassKit.CLSContext
override this.CreateContext : string * ClassKit.CLSContext * string[] -> ClassKit.CLSContext

Parameters

identifier
String

The identifier for the context to create.

parentContext
CLSContext

The parent context for the context to create.

parentIdentifierPath
String[]

The identifier path for the parent of the context to create.

Returns

A new ClassKit store context.

Implements

Attributes

Remarks

ClassKit contexts are used to arrange nested content, such as chapters and sections of a lesson plan, in order to organize and track student progress and tests. ClassKit supports a maximum of 8 layers of content nesting.

Applies to