Opc.Ua.InstanceStateSnapshot.IsTypeOf C# (CSharp) 메소드

IsTypeOf() 공개 메소드

Returns true if the snapshort is an instance of the specified type.
public IsTypeOf ( FilterContext context, Opc.Ua.NodeId typeDefinitionId ) : bool
context FilterContext The context to use when checking the type definition.
typeDefinitionId Opc.Ua.NodeId The type of the instance.
리턴 bool
        public bool IsTypeOf(FilterContext context, NodeId typeDefinitionId)
        {
            if (!NodeId.IsNull(typeDefinitionId))
            {
                if (!context.TypeTree.IsTypeOf(m_typeDefinitionId, typeDefinitionId))
                {
                    return false;
                }
            }

            return true;
        }