Visual Basic (Declaration) | |
---|---|
Public Overloads MustOverride Function Create( _ ByVal contextExtensionType As Type, _ ByVal name As String _ ) As Context |
C# | |
---|---|
public abstract Context Create( Type contextExtensionType, string name ) |
C++/CLI | |
---|---|
public: abstract Context^ Create( Type^ contextExtensionType, String^ name ) |
Parameters
- contextExtensionType
- Type to use for ContextExtension of new Context.
- name
- Name to use for created Context.
Return Value
A handle to the newly created context.Exception | Description |
---|---|
System.ArgumentException | Thrown if contextExtensionType is not supported. |
System.ArgumentException | Thrown if the supplied name already exists in the collection, or if string is an invalid name. |
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)