DOFProtocolFactorygetSecurityMode Method (Int16)OpenDOF Object Access Library
Returns the security mode layer for a protocol identifier.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
DOFSecurityMode getSecurityMode(
	short protocol
)

Parameters

protocol
Type: SystemInt16
The protocol identifier. Must be one of the protocol-specific constants.

Return Value

Type: DOFSecurityMode
The security mode layer for the given protocol identifier.
Remarks

Returns the security mode layer for a protocol identifier.

Must treat returned values as singletons. That is, once this method has returned an instance of the protocol, it should always return that instance for the specified protocol.

See Also

Reference