Connectivity Software User's Guide and Reference
GetEffectiveComInstantiationParameters Method (EasyClientParametersExtension)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.Engine.Extensions Namespace > EasyClientParametersExtension Class : GetEffectiveComInstantiationParameters Method

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

Determines the effective COM instantiation parameters.
Syntax
'Declaration
 
<ExtensionAttribute()>
<JetBrains.Annotations.NotNullAttribute()>
Public Shared Function GetEffectiveComInstantiationParameters( _
   ByVal easyClientParameters As EasyClientParameters _
) As ComInstantiationParameters
'Usage
 
Dim easyClientParameters As EasyClientParameters
Dim value As ComInstantiationParameters
 
value = EasyClientParametersExtension.GetEffectiveComInstantiationParameters(easyClientParameters)
[Extension()]
[JetBrains.Annotations.NotNull()]
public static ComInstantiationParameters GetEffectiveComInstantiationParameters( 
   EasyClientParameters easyClientParameters
)
[Extension()]
[JetBrains.Annotations.NotNull()]
public:
static ComInstantiationParameters^ GetEffectiveComInstantiationParameters( 
   EasyClientParameters^ easyClientParameters
) 

Parameters

easyClientParameters

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

Return Value

Returns the effective COM instantiation parameters, as specified by this object.

This method never returns null (Nothing in Visual Basic).

Remarks

The effective parameters are calculated by taking OpcLabs.BaseLib.Runtime.InteropServices.ComConfiguration.InstantiationParameters of the OpcLabs.BaseLib.Runtime.InteropServices.ComManagement.Configuration in OpcLabs.BaseLib.Runtime.InteropServices.ComManagement.Instance, and overriding them with OpcLabs.BaseLib.Runtime.InteropServices.ComInstantiationParameters from this object.

This is not a property, because the result depends on factors that reside outside the object.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

This is an extension method (info: C#, VB.NET). In languages that have support for extensions methods (such as C# and VB.NET), you can use the extension method as if it were a regular method on the object that is its first parameter. In other languages (such as with Python.NET), you will call the extension as a static method, and pass it the object on which it acts as its first parameter.

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