OPC Studio User's Guide and Reference
SetComponentBag Method



OpcLabs.BaseLibPresentation Assembly > OpcLabs.BaseLib.Presentation.ComponentModel Namespace > Live Class : SetComponentBag Method
The element to which the attached property is written.

The value of this parameter cannot be null (Nothing in Visual Basic).

The needed ComponentBag value.

The value of this parameter can be null (Nothing in Visual Basic).

Sets the value of the ComponentBag attached property to a specified element.
Syntax
'Declaration
 
Public Shared Sub SetComponentBag( _
   ByVal element As FrameworkElement, _
   ByVal componentBag As ComponentBag _
) 
'Usage
 
Dim element As FrameworkElement
Dim componentBag As ComponentBag
 
Live.SetComponentBag(element, componentBag)
public static void SetComponentBag( 
   FrameworkElement element,
   ComponentBag componentBag
)
public:
static void SetComponentBag( 
   FrameworkElement^ element,
   ComponentBag^ componentBag
) 

Parameters

element
The element to which the attached property is written.

The value of this parameter cannot be null (Nothing in Visual Basic).

componentBag
The needed ComponentBag value.

The value of this parameter can be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also