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


contextExtensionType
Type to use for ContextExtension of new Context.
name
Name to use for created Context.

Glossary Item Box

Create a new Context using the indicated ContextExtension type, with the supplied name.

Syntax

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.

Exceptions

ExceptionDescription
System.ArgumentExceptionThrown if contextExtensionType is not supported.
System.ArgumentExceptionThrown if the supplied name already exists in the collection, or if string is an invalid name.

Requirements

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

See Also