Opc.Ua.Com.Server.ComNamespaceMapper.GetLocalNamespaceIndex C# (CSharp) Метод

GetLocalNamespaceIndex() публичный Метод

Gets the local index for the remote namespace index.
public GetLocalNamespaceIndex ( ushort remoteIndex ) : ushort
remoteIndex ushort The remote namespace index.
Результат ushort
        public ushort GetLocalNamespaceIndex(ushort remoteIndex)
        {
            if (remoteIndex < 2)
            {
                return remoteIndex;
            }

            lock (m_lock)
            {
                int localIndex = m_namespaceUris.RemoteToLocal[remoteIndex];

                if (localIndex < 0)
                {
                    return UInt16.MaxValue;
                }

                return (ushort)localIndex;
            }
        }