T
The desired ContextExtension type.
Keysight Pathwave 89600 VSA .NET API
ChangeExtension<T>() Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Keysight.SA.Vsa Namespace > Context Class > ChangeExtension Method : ChangeExtension<T>() Method


Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overloads MustOverride Function ChangeExtension(Of T As ContextExtension)() As T
C# 
public abstract T ChangeExtension<T>()
where T: ContextExtension
C++/CLI 
public:
abstract T^ ChangeExtensiongeneric<typename T>
(); 
where T: ContextExtension

Type Parameters

T
The desired ContextExtension type.

Return Value

A correctly typed 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 T 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