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

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

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

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

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

                return (ushort)remoteIndex;
            }
        }