Keysight Pathwave 89600 VSA .NET API
ChangeExtension(Type) Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Keysight.SA.Vsa Namespace > Context Class > ChangeExtension Method : ChangeExtension(Type) Method


contextExtensionType
The desired ContextExtension type.

Glossary Item Box

Changes the current Context to the indicated type (if necessary) and returns a handle to the extension object.

Syntax

Visual Basic (Declaration) 
Public Overloads MustOverride Function ChangeExtension( _
   ByVal contextExtensionType As Type _
) As Object
C# 
public abstract object ChangeExtension( 
   Type contextExtensionType
)
C++/CLI 
public:
abstract Object^ ChangeExtension( 
   Type^ contextExtensionType
) 

Parameters

contextExtensionType
The desired ContextExtension type.

Return Value

A handle to the requested extension object. If the requested ContextExtension type is not available, an exception is thrown. In this case, the previous ContextExtension type is left unchanged.

Exceptions

ExceptionDescription
System.ArgumentExceptionIs thrown if contextExtensionType is not an available ContextExtension type.

Remarks

Object references returned previously by Keysight.SA.Vsa.Context.GetExtension``1 are no longer valid after calling this method.

Requirements

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

See Also