ArcFM Engine Developer Guide
IsGatewayThread Property


Gets a value indicating whether or not the current (calling) thread is the same thread for which the COM apartment gateway was setup.
Syntax
'Declaration
 
Public Shared ReadOnly Property IsGatewayThread As Boolean
'Usage
 
Dim value As Boolean
 
value = MarshalToMainSTAAttribute.IsGatewayThread
public static bool IsGatewayThread {get;}
Remarks
Of course there is no way to control whether the gateway is established on the main STA, but you are guaranteed that it is at least an STA thread.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

MarshalToMainSTAAttribute Class
MarshalToMainSTAAttribute Members

 

 


Send Comment