| Visual Basic (Declaration) | |
|---|---|
Public Overloads MustOverride Function Create( _ ByVal originalContext As Context, _ ByVal name As String _ ) As Context | |
| C# | |
|---|---|
public abstract Context Create( Context originalContext, string name ) | |
| C++/CLI | |
|---|---|
public: abstract Context^ Create( Context^ originalContext, String^ name ) | |
Parameters
- originalContext
- The Context to be duplicated.
- name
- The name to use for the new Context.
Return Value
A handle to the new Context.| Exception | Description |
|---|---|
| System.ArgumentException | Is raised if originalContext is not a current, valid Context. |
| System.ArgumentException | Thrown if the supplied name already exists in the collection. |
The newly created Context instance will be an independent copy, with a matching ContextExtension type. All properties on the extension will match what was provided by the specific ContextExtension in originalContext when this method was called.
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)