Keysight Pathwave 89600 VSA .NET API
Create(Context,String) Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Keysight.SA.Vsa Namespace > ContextCollection Class > Create Method : Create(Context,String) Method


originalContext
The Context to be duplicated.
name
The name to use for the new Context.

Glossary Item Box

Creates a new Context identical to the supplied Context, using supplied name.

Syntax

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.

Exceptions

ExceptionDescription
System.ArgumentExceptionIs raised if originalContext is not a current, valid Context.
System.ArgumentExceptionThrown if the supplied name already exists in the collection.

Remarks

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.

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also